Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Ralf Pickel
 
Posts: n/a
Default mailmerge - excel datasource - other file extension?

hi,

mailmerge automation works fine when file extension of excel file is xls.
with other extension it will not. what can i do? renaming the file is not a
solution!

the solution must work with word 2000, XP, 2003.

i'd like to use dde (sample2).

thanks
ralf


code samples for word 2003 (german)
sample1:

oMailMerge.OpenDataSource _
Name:=Filename _
, ConfirmConversions:=False _
, ReadOnly:=False _
, LinkToSource:=True _
, AddToRecentFiles:=False _
, PasswordDocument:="" _
, PasswordTemplate:="" _
, WritePasswordDocument:="" _
, WritePasswordTemplate:="" _
, Revert:=False _
, Format:=wdOpenFormatAuto _
, Connection:="Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=" & Filename & ";Extended Properties=Excel 8.0;" _
, SQLStatement:="SELECT * FROM `Tabelle1$`" _
, SQLStatement1:="" _
, SubType:=wdMergeSubTypeOther

sample2:
oMailMerge.OpenDataSource Name:=Filename, _
Format:=CLng(0), _
ConfirmConversions:=CLng(0), _
ReadOnly:=CLng(1), _
LinkToSource:=CLng(0), _
AddToRecentFiles:=CLng(0), _
PasswordDocument:="", _
PasswordTemplate:="", _
Revert:=CLng(0), _
WritePasswordDocument:="", _
WritePasswordTemplate:="", _
Connection:="Gesamte Arbeitsmappe", _
SQLStatement:="", _
SQLStatement1:="", _
SubType:=wdMergeSubTypeWord2000



 
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel worksheet in Word linked text boxes Eduardo Oliveira Page Layout 0 January 5th 05 11:23 PM
word 97 mailmerge with paradox files as datasource saj via OfficeKB.com Mailmerge 0 December 24th 04 12:14 PM
Word Field Codes in Excel data file mranz Mailmerge 7 December 11th 04 09:02 AM
Mailmerge from EXCEL, custom format problem TonyB Mailmerge 1 December 1st 04 04:41 PM
To select data from across worksheets in a excel file for a main . Salaivani Mailmerge 1 December 1st 04 01:08 AM


All times are GMT +1. The time now is 03:44 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"