View Single Post
 
Old 01-13-2022, 06:50 AM
Souriane Souriane is offline Windows 10 Office 2019
Advanced Beginner
 
Join Date: Feb 2017
Location: Quebec, Canada
Posts: 82
Souriane is on a distinguished road
Default

Thanks Mr. Mayor. I've already been using your great macro for years! Unfortunately, it is not only that I can't open the Registry Editor anymore, it's also that I can't edit any key registry at all with VBA.

I tried to see if I could use SendKeys to respond to the window but wasn't able to make it happen.

In fact, what I want is to unlink the document with the database upon opening.
Any suggestion?

I tried myDoc.MailMerge.MainDocumentType = WdMailMergeMainDocType.wdNotAMergeDocument
but it won't work as the document must be open to work and as long as the SQL Security message shows, well, it is not open yet..
Reply With Quote