+ Reply to Thread
Results 1 to 6 of 6

Combining macros to be one and run in a specific order

  1. #1
    Registered User
    Join Date
    08-03-2012
    Location
    Manchester
    MS-Off Ver
    Excel 2010
    Posts
    24

    Combining macros to be one and run in a specific order

    Hey, I'm novice with VBA so I'm not familiar with combing macros to be one and run in a specific order. This is what I was trying.

    Please Login or Register  to view this content.

    I've also tried this method, but this isn't working either.

    Please Login or Register  to view this content.
    Thanks in advance!
    Last edited by Cutter; 08-09-2012 at 12:27 PM. Reason: Corrected title

  2. #2
    Registered User
    Join Date
    08-06-2012
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    80

    Re: Combing macros to be one and run in a specific order

    Best way to do this is recording you running the macro's. Then take note of what recorded for future reference. It all depends on what your Excel workbook is saved as so for easy sake hit the record button and then run them in the order you want them to run. Once this is done you'll have a shiney new macro which runs them in the order you want. If you need any more help then let me know

  3. #3
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Combing macros to be one and run in a specific order

    In the 1st code, there is only 1 sub. In the 2nd sub, you are calling 4 subs that do not have the same name as the 1st sub.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  4. #4
    Registered User
    Join Date
    08-06-2012
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    80

    Re: Combing macros to be one and run in a specific order

    Please Login or Register  to view this content.
    Then record you running the four Macro's in the order you want.

  5. #5
    Registered User
    Join Date
    08-03-2012
    Location
    Manchester
    MS-Off Ver
    Excel 2010
    Posts
    24

    Re: Combining macros to be one and run in a specific order

    Hey sorry for not getting back to you, not had any internet access. Emm I tried recording a new macro by clicking the existing ones in the order I wanted to run them, but nothing gets recorded.

    I also tried that call method but that didn't work either.

  6. #6
    Registered User
    Join Date
    08-03-2012
    Location
    Manchester
    MS-Off Ver
    Excel 2010
    Posts
    24

    Re: Combining macros to be one and run in a specific order

    Ah no worries, I've got it working now! Thanks

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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