Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.docmanagement
Shirley Shirley is offline
external usenet poster
 
Posts: 25
Default Combine two macros into one

Hi,

I'm using Word 2003. I have two macros that I want to combine into one (add
2nd after the 1st).

I'm a complete novice in the VBA editor. If you can pls. tell me the
specific wording to copy from 2nd macro (do I take the entire thing?) and
where exactly to place at after the 1st macro (END WITH?) so it runs
seamlessly, I would truly appreciate it.

Thanks,
Shirley
  #2   Report Post  
Posted to microsoft.public.word.docmanagement
Beth Melton Beth Melton is offline
external usenet poster
 
Posts: 1,380
Default Combine two macros into one

If you want to run Macro 2 after Macro 1 then at the end of Macro 1, insert
a blank line if necessary before Exit Sub, and type:

Call MacroName

Where MacroName is the name of Macro 2.

Please post all follow-up questions to the newsgroup. Requests for
assistance by email cannot be acknowledged.

~~~~~~~~~~~~~~~
Beth Melton
Microsoft Office MVP

Coauthor of Word 2007 Inside Out:
http://www.microsoft.com/MSPress/boo...x#AboutTheBook

Word FAQ: http://mvps.org/word
TechTrax eZine: http://mousetrax.com/techtrax/
MVP FAQ site: http://mvps.org/

"Shirley" wrote in message
...
Hi,

I'm using Word 2003. I have two macros that I want to combine into one
(add
2nd after the 1st).

I'm a complete novice in the VBA editor. If you can pls. tell me the
specific wording to copy from 2nd macro (do I take the entire thing?) and
where exactly to place at after the 1st macro (END WITH?) so it runs
seamlessly, I would truly appreciate it.

Thanks,
Shirley



  #3   Report Post  
Posted to microsoft.public.word.docmanagement
Shirley Shirley is offline
external usenet poster
 
Posts: 25
Default Combine two macros into one

Thank you so much. I know it's simple to you pros, but I just couldn't
figure it out. This info was so useful - thanks!

Regards,
Shirley

"Beth Melton" wrote:

If you want to run Macro 2 after Macro 1 then at the end of Macro 1, insert
a blank line if necessary before Exit Sub, and type:

Call MacroName

Where MacroName is the name of Macro 2.

Please post all follow-up questions to the newsgroup. Requests for
assistance by email cannot be acknowledged.

~~~~~~~~~~~~~~~
Beth Melton
Microsoft Office MVP

Coauthor of Word 2007 Inside Out:
http://www.microsoft.com/MSPress/boo...x#AboutTheBook

Word FAQ: http://mvps.org/word
TechTrax eZine: http://mousetrax.com/techtrax/
MVP FAQ site: http://mvps.org/

"Shirley" wrote in message
...
Hi,

I'm using Word 2003. I have two macros that I want to combine into one
(add
2nd after the 1st).

I'm a complete novice in the VBA editor. If you can pls. tell me the
specific wording to copy from 2nd macro (do I take the entire thing?) and
where exactly to place at after the 1st macro (END WITH?) so it runs
seamlessly, I would truly appreciate it.

Thanks,
Shirley




  #4   Report Post  
Posted to microsoft.public.word.docmanagement
Beth Melton Beth Melton is offline
external usenet poster
 
Posts: 1,380
Default Combine two macros into one

You're welcome. :-)

Always remember, those who know how to do something learn at some point. Now
it's simple for you too. ;-)

Please post all follow-up questions to the newsgroup. Requests for
assistance by email cannot be acknowledged.

~~~~~~~~~~~~~~~
Beth Melton
Microsoft Office MVP

Coauthor of Word 2007 Inside Out:
http://www.microsoft.com/MSPress/boo...x#AboutTheBook

Word FAQ: http://mvps.org/word
TechTrax eZine: http://mousetrax.com/techtrax/
MVP FAQ site: http://mvps.org/

"Shirley" wrote in message
...
Thank you so much. I know it's simple to you pros, but I just couldn't
figure it out. This info was so useful - thanks!

Regards,
Shirley

"Beth Melton" wrote:

If you want to run Macro 2 after Macro 1 then at the end of Macro 1,
insert
a blank line if necessary before Exit Sub, and type:

Call MacroName

Where MacroName is the name of Macro 2.

Please post all follow-up questions to the newsgroup. Requests for
assistance by email cannot be acknowledged.

~~~~~~~~~~~~~~~
Beth Melton
Microsoft Office MVP

Coauthor of Word 2007 Inside Out:
http://www.microsoft.com/MSPress/boo...x#AboutTheBook

Word FAQ: http://mvps.org/word
TechTrax eZine: http://mousetrax.com/techtrax/
MVP FAQ site: http://mvps.org/

"Shirley" wrote in message
...
Hi,

I'm using Word 2003. I have two macros that I want to combine into one
(add
2nd after the 1st).

I'm a complete novice in the VBA editor. If you can pls. tell me the
specific wording to copy from 2nd macro (do I take the entire thing?)
and
where exactly to place at after the 1st macro (END WITH?) so it runs
seamlessly, I would truly appreciate it.

Thanks,
Shirley






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
MVP Graham Mayor - combine 2 of his macros to make another?? Will Williams Microsoft Word Help 1 January 10th 08 03:13 PM
Is it possible to combine two UK characters? john palmer Microsoft Word Help 3 April 23rd 07 07:37 AM
how do I combine these two macros? Tom Tables 5 December 26th 06 08:29 PM
Combine several lists spevack Mailmerge 1 July 21st 06 04:36 AM
two files to combine ottozuts New Users 0 October 5th 05 06:30 PM


All times are GMT +1. The time now is 12:34 AM.

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

About Us

"It's about Microsoft Word"