Reply
 
Thread Tools Display Modes
  #1   Report Post  
Cindy Meister
 
Posts: n/a
Default Mail Merge from Excel Error

On which code line is the error occurring?

Which version of Word is involved?

Are you certain the selection is in the appropriate position, when all this
starts, and that you actually have a label sheet in Word? I ask, because this
looks like macro recorder code, and recording a macro doesn't do the entire
job for creating a label sheet from scratch...

-- Cindy

"John Hutcins" wrote:

I am trying to do a Word MailMerge from within an Excel VBA macro.
This is where the macro is stopping with a Run time Error of 450 Wrong
Number of Arguments or Invalid Property Assignment. With the mail merge
wizard this is the step where it is at 'arrange labels' then select 'more
items'. This adds the Labels and VinUnit to the first field on the label
sheet.

'Layout of labels
wrd.ActiveDocument.Fields.Add Range:=Selection.Range,
Type:=wdFieldMergeField _
, Text:="""Labels"""
wrd.Selection.TypeParagraph
wrd.ActiveDocument.Fields.Add Range:=Selection.Range,
Type:=wdFieldMergeField _
, Text:="""VinUnit"""
wrd.WordBasic.MailMergePropagateLabel

Any ideas as to what is wrong?
Thanks,
John

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
2003 Small Business - Mail Merge from Excel Sheet Duplication Oddi Los Mailmerge 1 May 4th 05 02:52 PM
Mail Merge Issue With Office 97 - Excel Data Source Matt Thorley Mailmerge 1 February 15th 05 11:38 PM
mail merge error using excel Joanna Mailmerge 1 January 18th 05 04:09 PM
Include linked graphs from Excel during mail merge? dhschick Mailmerge 1 December 14th 04 01:02 AM
Mail merge error occurs when filtering Excel data source Dave Mailmerge 1 December 2nd 04 10:46 PM


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