Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Dave C Dave C is offline
external usenet poster
 
Posts: 12
Default Mail Merge Toolbar

I have added an button to the mail merge toolbar that runs a macro. When I
merge to a document the native button on the tool bar become inactive but the
'custom' button does not. Is there a way I can disable the custom button so
it is not available on the merged document?

Thanks for any help.

Dave
  #2   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Graham Mayor Graham Mayor is offline
external usenet poster
 
Posts: 19,312
Default Mail Merge Toolbar

A custom button saved in a template will be available to the template and
documents created from it. If you want the macro it calls to only run in a
merge source document then add a line or two to the start of the macro

If ActiveDocument.MailMerge.MainDocumentType = wdNotAMergeDocument Then
MsgBox "This function is for mail merge source documents only",
vbExclamation, "Not a merge document"
Exit Sub
End If

The MsgBox line is optional.

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org



Dave C wrote:
I have added an button to the mail merge toolbar that runs a macro.
When I merge to a document the native button on the tool bar become
inactive but the 'custom' button does not. Is there a way I can
disable the custom button so it is not available on the merged
document?

Thanks for any help.

Dave



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 Toolbar Lucille Mailmerge 1 February 8th 08 08:35 AM
Filter & Sort icon shortcut on mail merge toolbar for Mail Mer Rec VSlaybaugh Mailmerge 2 January 30th 08 07:25 PM
Mail Merge Toolbar is OFF RAJAGOPAL Mailmerge 3 December 1st 07 07:44 PM
Mail Merge toolbar syssupspe Microsoft Word Help 3 August 14th 07 06:59 AM
Merge to Fax command is unavailable on Mail Merge toolbar אריה Mailmerge 1 May 26th 06 10:19 PM


All times are GMT +1. The time now is 01:33 AM.

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"