Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default ruuning part of a macro from another macro

Hi All,

Just a little help please,

I know how to run another macro from the current macro application.ru
but how do I only run a certain part of that macro

I thought it would be Application.Run "Book2!Macro1", GoTo Test

Thanks
Pau

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 340
Default ruuning part of a macro from another macro

Paul, the best way is to break the called macro up into independent pieces
and then call the one you want. If it is in the same workbook, you can call
a macro just by listing the name of the macro on its own line. No need to
use a Run statement.

Robert Flanagan
Macro Systems
Delaware, U.S. 302-234-9857
http://www.add-ins.com
Productivity add-ins and downloadable books on VB macros for Excel

Signature
"pauluk " wrote in message
...
Hi All,

Just a little help please,

I know how to run another macro from the current macro application.run
but how do I only run a certain part of that macro

I thought it would be Application.Run "Book2!Macro1", GoTo Test

Thanks
Paul


---
Message posted from http://www.ExcelForum.com/



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default ruuning part of a macro from another macro

Bob,

How would i go about this. The macro is in the same module an
workbook

--
Message posted from http://www.ExcelForum.com

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can a Macro be run as part of an IF() statement WAJ Excel Worksheet Functions 1 October 5th 07 04:57 AM
Macro Execution, Part Duo C Brandt Excel Discussion (Misc queries) 1 July 12th 07 10:57 PM
need macro to check part# and sum jg53 Excel Worksheet Functions 8 April 13th 06 04:29 PM
Lookup as Part of Macro Ken[_18_] Excel Programming 1 June 11th 04 12:51 AM
excel executes only a part of a macro mgr[_2_] Excel Programming 2 January 15th 04 07:18 AM


All times are GMT +1. The time now is 09:00 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"