![]() |
#1
|
|||
|
|||
![]()
Hi
I've written some code that automates a mailmerge from a form in MSacess - and it works fine...BUT... straight after the code line Set objWord = GetObject(stDocName, "Word.Document") the word document opens and prompts with "Opening this document will run with the following command....etc etc " and asking for a YEs/No answer; even though my code will then the datasource and do the merge, objWord.MailMerge.OpenDataSource Name:="C:\Temp\abc.txt", linktosource:=True objWord.Application.Visible = True objWord.MailMerge.Execute Does anyone know of any way to STOP word prompting - and just continue and do the merge? Thanks in advance Phil |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
RMittelman | Outlook | 1 | 02-07-2011 03:11 PM |
Automating document updates with new text | wordfoolish2 | Word | 0 | 01-04-2011 01:01 PM |
Automating an address from an Abbreviation | Panzer | Word | 0 | 04-12-2010 06:11 AM |
Access MailMerge DataSource in VB | advin | Mail Merge | 1 | 01-04-2010 01:34 AM |
Automating Cel Population of .jpg | skoz55 | Excel | 0 | 01-21-2009 03:43 AM |