Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.mailmerge.fields
kanex125 kanex125 is offline
external usenet poster
 
Posts: 1
Default Mail merge error in 07 but not in 03?

I am getting a Run-time error '9105': string is longer then 255 charactars,
when running a macro in word 2007 but the same macro runs fine in word 2003.
Suggestions? The code is
ActiveDocument.MailMerge.OpenDataSource Name:= _
"S:\cco\staff\CCOSHARE\DISASTER RECOVERY\4 DR PLANNING\Replicator
MASTER CURT\DR PLAN QUESTIONNAIRE INPUT MASTER V1.xls" _
, ConfirmConversions:=False, ReadOnly:=False, LinkToSource:=True, _
AddToRecentFiles:=False, PasswordDocument:="", PasswordTemplate:="", _
WritePasswordDocument:="", WritePasswordTemplate:="", Revert:=False, _
Format:=wdOpenFormatAuto, Connection:= _
"Provider=Microsoft.Jet.OLEDB.4.0;Password="""";Us er ID=Admin;Data
Source=S:\cco\staff\CCOSHARE\DISASTER RECOVERY\4 DR PLANNING\Replicator
MASTER CURT\DR PLAN QUESTIONNAIRE INPUT MASTER V1.xls;Mode=Read;Extended
Properties=""HDR=YES;IMEX=1;"";Jet OLEDB:System datab" _
, SQLStatement:="SELECT * FROM `'Merge Info - Questionnaire$'`", _
SQLStatement1:="", SubType:=wdMergeSubTypeAccess
  #2   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Doug Robbins - Word MVP Doug Robbins - Word MVP is offline
external usenet poster
 
Posts: 8,832
Default Mail merge error in 07 but not in 03?

Delete all of the unused attributes and those that are set to the default
value, leaving only the comma separators to reduce the length of the connect
string.

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP

"kanex125" wrote in message
...
I am getting a Run-time error '9105': string is longer then 255 charactars,
when running a macro in word 2007 but the same macro runs fine in word
2003.
Suggestions? The code is
ActiveDocument.MailMerge.OpenDataSource Name:= _
"S:\cco\staff\CCOSHARE\DISASTER RECOVERY\4 DR PLANNING\Replicator
MASTER CURT\DR PLAN QUESTIONNAIRE INPUT MASTER V1.xls" _
, ConfirmConversions:=False, ReadOnly:=False, LinkToSource:=True, _
AddToRecentFiles:=False, PasswordDocument:="",
PasswordTemplate:="", _
WritePasswordDocument:="", WritePasswordTemplate:="",
Revert:=False, _
Format:=wdOpenFormatAuto, Connection:= _
"Provider=Microsoft.Jet.OLEDB.4.0;Password="""";Us er ID=Admin;Data
Source=S:\cco\staff\CCOSHARE\DISASTER RECOVERY\4 DR PLANNING\Replicator
MASTER CURT\DR PLAN QUESTIONNAIRE INPUT MASTER V1.xls;Mode=Read;Extended
Properties=""HDR=YES;IMEX=1;"";Jet OLEDB:System datab" _
, SQLStatement:="SELECT * FROM `'Merge Info - Questionnaire$'`", _
SQLStatement1:="", SubType:=wdMergeSubTypeAccess



Reply
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
Mail Merge Error fidelio1st Mailmerge 3 November 1st 07 06:54 AM
Odd Mail Merge error Rhino New Users 0 June 17th 06 04:35 PM
e-mail addresses for Word mail merge have format error cjfi Mailmerge 1 June 5th 06 04:54 PM
Mail Merge Error Tanya Mailmerge 2 January 24th 06 09:35 PM
Mail Merge Error Scott May Mailmerge 1 February 14th 05 11:20 PM


All times are GMT +1. The time now is 08:15 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"