+ Reply to Thread
Results 1 to 2 of 2

Executing a macro within a macro

  1. #1
    Valued Forum Contributor
    Join Date
    11-20-2003
    MS-Off Ver
    2010, 2016
    Posts
    1,173

    Executing a macro within a macro

    How can I execute another macro within a macro? Example, I have a macro called "GoTo()". Within this macro, I want to call on another macro called "Consolidate()".

    The code for Consolidate is very lengthy and I don't want to insert this code into my other macro.

    Thanks

  2. #2
    Forum Contributor
    Join Date
    04-30-2008
    Posts
    105
    Simply use
    Please Login or Register  to view this content.
    Whenever you want the macro to run that macro, once its done, it'll go back to the original macro that called it and finish running the remaining code.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. executing an exe file from macro
    By ashishprem in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-20-2008, 12:24 PM
  2. Excel Macro not executing from Oracle Forms
    By bavinash05 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-02-2007, 03:35 AM
  3. Executing a stored procedure in ORACLE from an EXCEL Macro thru ODBC.
    By ldevrries in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-10-2007, 04:59 PM
  4. country finder lookup macro
    By theghost in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-07-2007, 10:41 PM
  5. Executing the delete command in a macro
    By punter in forum Excel General
    Replies: 1
    Last Post: 11-16-2006, 03:45 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1