View Single Post
 
Old 12-19-2023, 09:17 AM
MartinGM MartinGM is offline Windows 11 Office 2021
Competent Performer
 
Join Date: May 2023
Location: England
Posts: 101
MartinGM is on a distinguished road
Default Opening a document with links - from VBA

When I open a Word document with links (for instance a mailmerge) I get a dialog "Yes" or "No" to allow SQL access. I select "Yes" and away I go.

When I open the same document from VBA it opens without showing the dialog, having assumed that the answer is "No". Then I can't do anything with the document.

Is there a way from VBA to open the document to the dialog so that I can answer the question as "Yes" ?

Or is there another workaround to open the document with SQL access ?

Many thanks
Reply With Quote