Hi everyone,
I'm kind of a noob when it comes to VBA, although I have been experimenting with it for a while.
What I'm trying to do is automate a login, some button clicks and then fill in a form on the webpage.
Now, I managed to get the macro to login. However, after that, it needs to click a button, which won't work. Or actually, it does work, but only when I F8 through my code. When I run it all at once it gives me a 'runtime error 424, object required' .
At first I thought this was because the element was not loaded on the page yet (the page load takes a while) so I added:
This didn't work, so I added a fixed wait:
Didn't work either.
Anyone some ideas on how to fix this? Again, it does work when I 'F8' the code.
Please find below full code:
Unfortunately, I can't send html because it's a work related login page.
Any ideas would be much appreciated!
Best,
J.
Bookmarks