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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Qut IE word editor and open same Doc with MS Word.

Status
Not open for further replies.

mnolting

Programmer
Oct 6, 2008
26
US
Heres my task: Open an e-mail attachment that is a word doc from a web -browser based exchange server (eg at run a macro that saves the doc locally, close the IE window and document, and open the same document in WORD.

I open the document so that I can run a word macro that "saves" the file to a specific location based on information in the document (lotsa information). I want to close it after the macro runs (which I do with SendKeys "%FX") and then open it with Word, (not IE's version of "Word"). If I attempt to use "Documents.Open FileName:="blabla.doc".... The IE version of "Word" is back open, not the WORD version of the editor, If I use the Shell function to open the document, A totally new instance (I will always have other word docs open) of word opens with the document and I get an error that something has the document open when I attempt to close the document.

Thanks
Mike
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top