Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help with Word 2000 Automation in Internet Explorer

Status
Not open for further replies.

Muzzery

Programmer
Jan 11, 2002
72
GB
Hiya,

I've been asked to write some code for a Word 2000 document that has been opened in Internet Explorer.

What i need to do is code a button to do the following:
1. Upload the document to an FTP site
2. Close the IE window

I've solved the two problems, (using the Microsoft Internet Transfer Controls for problem 1, and API for problem 2,) but the only thing is that when i close the IE Window, it asks if i want to save any changes, which i don't, as i've just uploaded it.

I've tried using:
* Application.DisplayAlerts = False
* ActiveDocument.Saved = True
* Application.Documents.Close wdSaveChanges:=False

All of which don't work.

Is there a way to stop the Save Confirmation question from appearing, or is it just not at all possible? I've been stuck on this for about a week, so ANY ideas would be very welcome.

Thanks

Muzz
 
I've had a similar problem in the past. If I remember correctly, I just created a parent window (off the screen) to start the process, then closed the child window(s), then the parent window.

If you don't get a more detailed answer, this may be worth a try.

Steve
 
I'm not really too hot with API (it took me all day to just figure out how to close the IE window!) Could you explain a bit as to how to achieve this at all?

Thanks

muzz
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top