Hello again,
Please take pity on an old lady trying to understand this stuff ...
When I mentioned I have no experience with scripting, I actually meant I have no experience with scripting. I started playing with MS V6 only a few weeks ago and emulating mousemoverel with clicks to automate a process wich chews up about 70% of my day so I could do something useful instead. This did work and I am really grateful for the time it has bought me. Now I have access to V8 and more flexible solutions, so maybe, I'm just getting greedy now ...
I've Googled myself silly and tried to work out how to use this code to do what I need - all to no avail. I realise the code you supplied will open a new IE window and navigate to the URL contained in the code. I simply can't work out how to replace the URL in your example with the links I need to follow.
I have around 300 links delivered daily in the body of individual emails. The emails contain text requesting action to be taken on documents which are stored at locations found by clicking the link also contained in the messages. The links looks like this:
I locate the link in each message by performing a "Find http" and then have been simulating a mouse click on the link to open IE and display the form in html. Each link which is clicked opens a completely new IE window so I have to close each one when I am finished otherwise I end up with a PC crash due to lack of memory as IE will not reuse an existing window for this even though the option "Reuse windows for launching shortcuts" is enabled in Tools > Internet Options > Advanced. This works ... BUT ... the document does not always become visible until after the window name changes which means my code to continue with the next step kicks in. The end result is that I get a blank printed page and the script run bombs out.
What I am hoping someone can show me, is how to use the VBScript Busy loop when the IE page has been launched as described above or how I can get the supplied script to read the link in the email message and navigate to it. From what I have been reading, I'm guessing I need to "pass" a variable into the script??? If that's correct, I'm still no closer to a solution because I have no idea how to do that.
You would make an old lady very happy if you could help with this.
TIA.
J