ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Open doc every second time line run (https://www.excelbanter.com/excel-programming/341692-open-doc-every-second-time-line-run.html)

kaiser

Open doc every second time line run
 
Hi
I am trying to open a word doc from excel but the document only opens
every SECOND time this line is run....so if I put the line in the
program twice then the documents opens fine everytime - if I dont put
the line in twice then every second time I runt he macro the docuemtns
opens

Word.Application.Documents.Open (DocFilePath)
Word.Application.Documents.Open (DocFilePath)


Any suggestions?



All times are GMT +1. The time now is 12:19 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com