|
-
Jan 7th, 2006, 02:56 PM
#1
Thread Starter
New Member
close window
I dont know much about Visual Basic, but here is what I have:
Sub Macro1()
For x = 1 To 10
ActiveDocument.FollowHyperlink Address:="http://www.spftservers.com", _
NewWindow:=False, AddHistory:=True
Next x
End
End Sub
That basicallly opens up an internet explorer window during the loop. What I want it to do is close that internet explorer window after it is opened. Also, I would preferably like it to wait 2 seconds before closing the window. I need the code for the program since I dont know much. Thank you.
Here is what my total program is to do, so if you can write better code...:
1. Open a new Mozilla/Internet Window
2. Go to a certain website
3. **Optional** Wait 5 seconds
3. Close that Window
4. Have a loop with a certain amount runs
Thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|