Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
Could you help with launching Mail Merger with a code from within Excel?
I've got a Mail Merge doc based on .xls via DDE. When manually openeing
the file i need to confirm that the sql will be run. I've written a code to launch the mail merge doc from within Excel but the problem is that by launching it this way the sql gets disabled (no warning appears - i'm not getting prompted at all - I've got no chance to confirm running of that sql) and thus the Mail Merge gets disconnected from the underlying .xls file... Any ideas how to keep the Mail Merge running and connected to the .xls? The code Sub Open_MMerge() Dim wrdApp As Word.Application Set wrdApp = CreateObject("Word.Application") wrdApp.Visible = True wrdApp.Documents.Open ("C:\Mail_merge.doc") wrdApp.Activate Set wrdApp = Nothing End Sub Thanks, A. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
doing mail merge with excel the first letter in zip code is missi | Excel Discussion (Misc queries) | |||
2 Questions | New Users to Excel | |||
Running Excel 2000 VBA Application on Excel 2003 | Excel Worksheet Functions | |||
Launching Excel by clicking Excel file | Excel Discussion (Misc queries) |