Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello,
I created a mail merge word document, data comes from Excel. When i navigate to Labels.doc and open it from Windows explorer, i get prompted: Opening this document will run the following SQL Command..... Data from your database will replace existing data.... Which is what i want. However, if i run the following code from Excel, the document opens, but doesn't prompt me and it contains unrefreshed data. Dim wrdApp As Word.Application Dim wrdDoc As Word.Document Set wrdApp = CreateObject("Word.Application") wrdApp.Visible = True Set wrdDoc = wrdApp.Documents.Open("c:\labels.doc") How can i force Word it to re-read/refresh the data when opening from VBA? thanks Ron |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel Hyperlink doesn't open Word doc the same way as Word does | Excel Discussion (Misc queries) | |||
Choose (open) workbook for actions on user prompt | Excel Programming | |||
How to open a word doc while in Excel | Excel Discussion (Misc queries) | |||
open word doc from within excel with VBA | Excel Programming | |||
Graph Excel Selection, Open Word File, Embed Graph Into Word | Excel Programming |