+ Reply to Thread
Results 1 to 12 of 12

Run Multiple Macro

  1. #1
    Forum Contributor
    Join Date
    04-14-2014
    Location
    Philippines
    MS-Off Ver
    2007, 2010, 2013, 2016.
    Posts
    169

    Run Multiple Macro

    Hi all.
    Is it possible run multiple macro in one workbook?
    i wish to add more sheets from original code, 6 to be exact.
    i have no knowledge with macro. i try copying original code, add same code and change the sheet name and target data like input2,data2...
    but to no avail. Please help and Thanks.

    here's the original code. (thanks to the help of Arkadi)
    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    04-01-2013
    Location
    East Auckland
    MS-Off Ver
    Excel 365
    Posts
    1,343

    Re: Run Multiple Macro

    is it that your old 'active sheet" was input and now you just want to run it on whatever the active sheet is becuase there mgiht be quite a few "input" sheets?
    if so then maybe just

    Please Login or Register  to view this content.
    If you want something done right... find a forum and ask an online expert.

    Time flies like an arrow. Fruit flies like a banana.

  3. #3
    Forum Contributor
    Join Date
    04-14-2014
    Location
    Philippines
    MS-Off Ver
    2007, 2010, 2013, 2016.
    Posts
    169

    Re: Run Multiple Macro

    thanks for the quick reply scottiex.
    i'm planning of independent sheets with different title and data to input but same format as original.

  4. #4
    Forum Contributor
    Join Date
    04-06-2016
    Location
    Singapore
    MS-Off Ver
    MS Office 365 & 2010
    Posts
    698

    Re: Run Multiple Macro

    Check this one.

    Please Login or Register  to view this content.
    Is this you want ?
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    04-14-2014
    Location
    Philippines
    MS-Off Ver
    2007, 2010, 2013, 2016.
    Posts
    169

    Re: Run Multiple Macro

    Thanks rajeshn_in.
    Actually i have main input sheet to input data and transfer them to the data sheet.
    and i also have a button in input sheet that once click, the input sheet's cell turn blank and ready for another input. while the data are transferred into the data sheet.

  6. #6
    Forum Contributor
    Join Date
    04-06-2016
    Location
    Singapore
    MS-Off Ver
    MS Office 365 & 2010
    Posts
    698

    Re: Run Multiple Macro

    Check this one

    Please Login or Register  to view this content.
    Attached Files Attached Files

  7. #7
    Forum Contributor
    Join Date
    04-14-2014
    Location
    Philippines
    MS-Off Ver
    2007, 2010, 2013, 2016.
    Posts
    169

    Re: Run Multiple Macro

    rajeshn_in, your first solution is doing the job (just tried again) but data transferred to data2 is staying in one column and overwriting the last entry.
    input and data sheet are tandem. it is these that i want to replicate, just have different name cells.
    a little fine tuning perhaps? thanks for your patience.

  8. #8
    Forum Contributor
    Join Date
    04-06-2016
    Location
    Singapore
    MS-Off Ver
    MS Office 365 & 2010
    Posts
    698

    Re: Run Multiple Macro

    Hi getafixkwik,

    You want how many input and how many data sheets, one input and 6 data sheets you want ?

  9. #9
    Forum Contributor
    Join Date
    04-14-2014
    Location
    Philippines
    MS-Off Ver
    2007, 2010, 2013, 2016.
    Posts
    169

    Re: Run Multiple Macro

    hi rajeshn_in . simply put, 6 of the original code in my post (it's a working code, just don't know how to add more). Input sheet to store data in Data sheet. input2 to data2, input3 to data3 and so on. Thanks

  10. #10
    Forum Contributor
    Join Date
    04-06-2016
    Location
    Singapore
    MS-Off Ver
    MS Office 365 & 2010
    Posts
    698

    Re: Run Multiple Macro

    Ok send u shortly

  11. #11
    Forum Contributor
    Join Date
    04-06-2016
    Location
    Singapore
    MS-Off Ver
    MS Office 365 & 2010
    Posts
    698

    Re: Run Multiple Macro

    Please find attachment

    Change names in code and Sheet name as you want.

  12. #12
    Forum Contributor
    Join Date
    04-14-2014
    Location
    Philippines
    MS-Off Ver
    2007, 2010, 2013, 2016.
    Posts
    169

    Re: Run Multiple Macro

    Hi again rajeshn_in, i only use the first file (Separate...), and it works great!
    Thank You for your time and help. much appreciated.
    Thanks again.

+ 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] New to Excel programming. In need of a macro to combine multiple files with multiple tabs.
    By nflores0303 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-12-2016, 11:03 AM
  2. Replies: 1
    Last Post: 11-14-2015, 07:34 PM
  3. Macro - Refresh Multiple Protected Pivtos (on Multiple Sheets) Upon Workbook Opening
    By luke.walker in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-26-2014, 05:18 PM
  4. Macro to filter multiple columns of data to multiple work sheets
    By LISSANN in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-10-2014, 07:24 PM
  5. Need macro to search multiple data points from multiple entries and return single value
    By Redbullmoo in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-11-2013, 02:16 AM
  6. Replies: 0
    Last Post: 11-08-2012, 01:07 PM
  7. Macro to Segregate the data based on Multiple Criteria's in Multiple Columns -Challenging!
    By Novice_To_Excel in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 10-08-2012, 07:31 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