+ Reply to Thread
Results 1 to 18 of 18

VBA to Call Multiple Macros

Hybrid View

  1. #1
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,644

    Re: VBA to Call Multiple Macros

    What happens if you move WBMerge to the same workbook as Macro1 and WSMerge?

    You should then be able to call both subs like this.
    Sub Macro1()
    
        WBMerge
        WSMerge
    
    End Sub
    If posting code please use code tags, see here.

  2. #2
    Forum Contributor Pierce Quality's Avatar
    Join Date
    07-29-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    221

    Re: VBA to Call Multiple Macros

    Quote Originally Posted by Norie View Post
    What happens if you move WBMerge to the same workbook as Macro1 and WSMerge?

    You should then be able to call both subs like this.
    Sub Macro1()
    
        WBMerge
        WSMerge
    
    End Sub
    Initally I wanted to merge the workbooks that are in a different directory to a master file but couldnt get it work across directories, so I ended up placing a dummy book in the same directory as the workbooks to be merged and running a data connection to it. Might have to re visit that plan I think!
    lol

    Thanks!

+ 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. [SOLVED] Call different macros using multiple control checkboxes in a userform
    By Sideshow1447 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 09-04-2013, 04:39 PM
  2. Can Functions call Macros?
    By MBBCFP in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-11-2009, 01:18 PM
  3. How to call on other macros
    By Mac3188 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-08-2007, 08:59 PM
  4. To Call 2 macros
    By napalm in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-14-2006, 03:09 AM
  5. call multiple macros in workbook_open?
    By slimswol in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-09-2006, 11:29 PM

Tags for this Thread

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