Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #9  
Old 01-14-2022, 02:21 PM
macropod's Avatar
macropod macropod is offline Open MailMerge Documents and Ignore SQL Security Message Windows 10 Open MailMerge Documents and Ignore SQL Security Message Office 2016
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,523
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Quote:
Originally Posted by Souriane View Post
I have a macro that will open each template and reassigned the proper MailMerge DataSource and SQL Statement.

...

Is there a code to add to the macro to ignore the SQL Security message when it opens each document?
See Run a Mailmerge from Excel, Sending the Output to Individual Files in the Mailmerge Tips & Tricks 'Sticky' thread at the top of the Mailmerge forum: https://www.msofficeforums.com/mail-...ps-tricks.html
As demonstrated there, you will need to include the SQL statement in the VBA code. This applies to any code that disables the SQL message, not just to the code in the article.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Hide Security Message and Print rosscortb Word VBA 1 05-11-2017 03:39 AM
Open MailMerge Documents and Ignore SQL Security Message When loading existing documents (*.docx) they load with Security Warning - Macros have been disabled Franci Word 3 05-20-2016 04:33 AM
Open MailMerge Documents and Ignore SQL Security Message Mailmerge Individual Documents DaddyMac Mail Merge 4 06-06-2013 09:22 PM
Excel 2007 security alert - data connection message every time? michael.monaco Excel 0 12-20-2012 07:47 AM
Open MailMerge Documents and Ignore SQL Security Message Open Word = security warning, changes hard drive sleepymia Word 1 05-28-2012 05:49 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 09:12 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft