+ Reply to Thread
Results 1 to 4 of 4

Combining Two macros into one.

  1. #1
    Forum Contributor
    Join Date
    11-30-2020
    Location
    Ny
    MS-Off Ver
    Office 365
    Posts
    173

    Combining Two macros into one.

    I have these two macros, they work alone, however is there a way to combine them so they work as one? In addition I have 24 sheets in this workbook I would like the macro to work on all of them depending on what sheet is in use. Thanks.

    Please Login or Register  to view this content.
    Last edited by Tubtech; 03-24-2022 at 10:33 AM.

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Combining Two macros into one.

    They are unrelated so you can just merge the code.

    You could also keep them separate, and create a third Sub:
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    That line is just going to give you ActiveSheet.

    Here is the merged version:

    Please Login or Register  to view this content.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Forum Contributor
    Join Date
    11-30-2020
    Location
    Ny
    MS-Off Ver
    Office 365
    Posts
    173

    Re: Combining Two macros into one.

    Thanks For the help ! learnd something today!

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Combining Two macros into one.

    Glad to help!

+ 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. Need help combining 3 different macros
    By sai0449 in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 12-10-2015, 01:01 PM
  2. [SOLVED] Combining 2 macros
    By JohnDoh in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-24-2015, 07:35 AM
  3. VBA Combining Macros
    By murp5972 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 07-17-2015, 12:51 PM
  4. [SOLVED] Help combining macros
    By liquidmettle in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-20-2015, 09:33 AM
  5. [SOLVED] Combining Macros
    By MKWilson in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 09-18-2014, 01:35 PM
  6. Combining Macros
    By rocketboy13 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-01-2011, 02:45 PM
  7. [SOLVED] Combining macros
    By GarToms in forum Excel General
    Replies: 2
    Last Post: 02-09-2006, 08:35 AM

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