Hello everyone.
Some days ago I noticed that every time I unlock my pc the VBA editor window will automatically open, and somehow this affects a macro that's executed every morning day by the windows task scheduler (I think the macro is affected because since this issue came out the code does not extract all the data that it should) , also I noticed that even when I disable the scheduling task the VBA editor keeps opening automatically.
I tried the workaround mentioned on the post down below, and at first it worked but after a while the VBA editor opened automatically again:
Just in case, I share below the code in the .vbs file that CMD runs by windows task scheduler to execute my macro:
Could you help me to fix it, guys?
Best Regards.
Some days ago I noticed that every time I unlock my pc the VBA editor window will automatically open, and somehow this affects a macro that's executed every morning day by the windows task scheduler (I think the macro is affected because since this issue came out the code does not extract all the data that it should) , also I noticed that even when I disable the scheduling task the VBA editor keeps opening automatically.
I tried the workaround mentioned on the post down below, and at first it worked but after a while the VBA editor opened automatically again:
Visual Basic Editor Window Opens Automatically
Recently, I have noticed that my VBA editor window will automatically open when unlocking my computer. I am running XP, with Office 2003. I unlock my Windows using Ctrl-Alt-Delete, and type in my password. Then a VBA window pops up. I have done some troubleshooting and here's what have...
www.mrexcel.com
Just in case, I share below the code in the .vbs file that CMD runs by windows task scheduler to execute my macro:
VBA Code:
Dim args, objExcel
Set args = WScript.Arguments
Set objExcel = CreateObject("Excel.Application")
objExcel.Workbooks.Open args(0)
objExcel.Visible = True
objExcel.Run "Ruteo"
objExcel.ActiveWorkbook.Save
objExcel.ActiveWorkbook.Close(0)
objExcel.Quit
Could you help me to fix it, guys?
Best Regards.