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..
|