After run excel as administrator, I can't getobject(, "excell.application")
. -> Error occurred.
Is there has another method which I can control Excel(run as administrator)?
Below is the code I wrote.
dim xl_ap, xl, wbs
set xl_ap = createobject("Excel.application")
set xl = getobject(, "excel.application")
for each wbs in xl.workbooks
set wb = wbs
next
msgbox(wb.name)