+ Reply to Thread
Results 1 to 6 of 6

trying to add more commands to my existing macro

  1. #1
    Forum Contributor
    Join Date
    04-26-2013
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    167

    trying to add more commands to my existing macro

    Hi,

    I put the instruction in the excel file, what I would like to do. I try to add command into my VBA but it doesnt work. I put in bold the command that I added. The first command to filter macro work. The second one as well but as a DIFFERENT macro. I would like to only have ONE macro.

    Please Login or Register  to view this content.
    test1.xlsm
    Last edited by extremis; 05-01-2013 at 03:02 PM.

  2. #2
    Registered User
    Join Date
    05-17-2012
    Location
    Columbus, Ohio
    MS-Off Ver
    Excel 2007
    Posts
    14

    Post Re: trying to add more commands to my existing macro

    Although you could try to build a million macros into one, I would suggest writing seperate macros and then calling them all at the same time. It will help keep your code organized and making changes will be much easier.

    Please Login or Register  to view this content.
    The code above runs in order (1, 2, 3, ect...).
    Hope it helps!

  3. #3
    Forum Contributor
    Join Date
    04-26-2013
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    167

    Re: trying to add more commands to my existing macro

    Macroname1 is on sheet 2.
    Macroname2 is on sheet 3.

    the finalmacro button is on sheet1.

    help?

  4. #4
    Registered User
    Join Date
    05-17-2012
    Location
    Columbus, Ohio
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: trying to add more commands to my existing macro

    Try putting them all in 'ThisWorkbook' if you can...

    It would look somthin like this in 'ThisWorkbook'

    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    04-26-2013
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    167

    Re: trying to add more commands to my existing macro

    still no..

    anyone can help?

  6. #6
    Registered User
    Join Date
    05-17-2012
    Location
    Columbus, Ohio
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: trying to add more commands to my existing macro

    Not sure what isn't working for you... Take a look at what I did with the file you originally attached...
    Attached Files Attached Files

+ 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