I am receiving the error listed above for the following script.
Any help would be appreciated.![]()
Please Login or Register to view this content.
Thanks,
Met
I am receiving the error listed above for the following script.
Any help would be appreciated.![]()
Please Login or Register to view this content.
Thanks,
Met
on which line?
Ernest
Please consider adding a * if I helped
Nothing drives me crazy - I'm always close enough to walk....
It seems to me that this code is modifying the VBA code itself. I got an error on the second "Application.Wait" line of code because the above line of code just inserted a "l" so the line now looks like "lApplication.Wait" which is not an Excel command.
Also, why do you write the code as:instead of just![]()
Please Login or Register to view this content.
which do not return an error.![]()
Please Login or Register to view this content.
But I'm not very familiar with all tis.
Pierre Leclerc
_______________________________________________________
If you like the help you got,
Click on the STAR "Add reputation" icon at the bottom.
Not sure what the code is intended to do ... Sendkeys is fraught with danger.
Trying to test the code in the VBE causes it to write to, and corrupt, the code.
But, whatever, your code ...
I suspect the error is this line:
![]()
Please Login or Register to view this content.
because WScript is not defined.
If you had Option Explicit at the top of your code, it would have been highlighted when you tried to run the code.
Regards, TMS
Trevor Shuttleworth - Retired Excel/VBA Consultant
I dream of a better world where chickens can cross the road without having their motives questioned
'Being unapologetic means never having to say you're sorry' John Cooper Clarke
Thanks for everyones input. (The code is being modified by itself.) I will need to approach this a different way. I know I am going aroung the world to do a simple task but I can't see the forest for the trees, I guess.
My goal: Auto log into a Add-in in an Excel file.
Here is where I stand:
I created a batch file to open excel. (If I open excel with a vbs file it does not load the Add-Ins.)
I created a script file to run a macro created in the excel file:![]()
Please Login or Register to view this content.
Then I run the macro: (It runs the add-in)![]()
Please Login or Register to view this content.
It runs the addin to a point but the login menu will not open until my macro closes so I was going to load another script, close the macro, and then use the other script to fill in the prompt which I hope will appear after the macro within Excel has closed. I'm sure I've confused the hell out of everyone by now but humor me if you have any suggestions.![]()
Please Login or Register to view this content.
Thanks,
Met
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks