ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Controling a dialog box after I've selected the datasource (https://www.excelbanter.com/excel-programming/285556-controling-dialog-box-after-ive-selected-datasource.html)

JimPNicholls

Controling a dialog box after I've selected the datasource
 
Hi
(Word 97)
(Excel 97)

I'm trying to fully automate a mailmerge from excel but I'm stuck automating a dialog box that appears after I've selected the datasource. (the datasource is in excel).

The dialog box appears after I've selected the datasource. The title is "Microsoft Excel" and I have two options to merge, Entire Spreadsheet and _FilterDatabase.

Does anybody know how I can control this dialog box from excel therefore erasing any user input? I would like to select the entire spreadsheet.

Any clues would be appreciated.

PamBjerke

Controling a dialog box after I've selected the datasource
 
Try
oWord.ActiveDocument.MailMerge.OpenDataSource
Name:=myexcel.xls, Connection:="Entire Spreadsheet"


-----Original Message-----
Hi
(Word 97)
(Excel 97)

I'm trying to fully automate a mailmerge from excel but

I'm stuck automating a dialog box that appears after I've
selected the datasource. (the datasource is in excel).

The dialog box appears after I've selected the

datasource. The title is "Microsoft Excel" and I have two
options to merge, Entire Spreadsheet and _FilterDatabase.

Does anybody know how I can control this dialog box from

excel therefore erasing any user input? I would like to
select the entire spreadsheet.

Any clues would be appreciated.
.



All times are GMT +1. The time now is 05:42 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com