+ Reply to Thread
Results 1 to 6 of 6

Macro running 35+Macros

  1. #1
    Registered User
    Join Date
    08-20-2013
    Location
    Brownsville, Texas
    MS-Off Ver
    Excel 2010
    Posts
    3

    Macro running 35+Macros

    I have a building with 35 suites, I am trying to track rent.

    I created a table on sheet 1 to act as the register, the goal was to have the data from that register filter to the different suites. Each suite will have its own sheet, I have only done 11 so far because I wanted to make sure I did it right.

    Created a Macro on each sheet for its specific Advanced Filter. Then created a Macro to run all the Macros. Then created a button labeled "Save Rents" to activate the Macro.

    Works perfect for the first 5 sheets then stops, all of the filters work individually just not with the Macro. Also it clears my data from my register. I don't want it to clear the data.

    New to Macros created this by reading off the internet now I am stuck.

    Thanks for the help.

    -Jeremy
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    12-27-2012
    Location
    cebu, Philippines
    MS-Off Ver
    Excel 2016
    Posts
    210

    Re: Macro running 35+Macros

    i tested your macros one by one...

    and i noticed the problem is with macro "Suite6", then later i noticed the other macros from Suite6 going up has the same problem...

    this is macro suit5:
    Please Login or Register  to view this content.


    and this is macro suite6:
    Please Login or Register  to view this content.
    notice the difference?

    well..
    this part is the problem: (suite6 and up)
    Please Login or Register  to view this content.
    the target range for pasting was not defined upon recording the macro, or maybe overlooked upon editing...

    this means (if the macro was recorded), some steps crucial for its function was skipped - the paste area...


    i recommend record all the other macros, from macro suite6 going up to macro suite 10
    i'm not sure what macro suite11 does...
    don't worry, there's a lot of people that are far more confused than you
    but if you liked what i suggested. Click for me the "Add Reputation" - that way, we'd be both happy.

  3. #3
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: Macro running 35+Macros

    Get rid of all the macros. Try this and see if it does what you want.

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    08-20-2013
    Location
    Brownsville, Texas
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Macro running 35+Macros

    "i tested your macros one by one...

    and i noticed the problem is with macro "Suite6", then later i noticed the other macros from Suite6 going up has the same problem...

    this is macro suit5:"


    Ah I do see the difference. They must have messed up when I recorded them. I will rerecord 6-11.

    Editted 6-11 and it worked PERFECTLY Thank you so much!
    Last edited by jbarnard; 08-21-2013 at 09:38 AM.

  5. #5
    Registered User
    Join Date
    08-20-2013
    Location
    Brownsville, Texas
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Macro running 35+Macros

    "Get rid of all the macros. Try this and see if it does what you want."
    I deleted the Macros and copy pasted this into the VBA. Saved, closed then reopened.

    It didn't seem to do anything am I missing something?

    Sorry for my ignorance I am still learning.
    Last edited by jbarnard; 08-21-2013 at 09:32 AM.

  6. #6
    Forum Contributor
    Join Date
    12-27-2012
    Location
    cebu, Philippines
    MS-Off Ver
    Excel 2016
    Posts
    210

    Re: Macro running 35+Macros

    if you wanna try the macro that stnkynts advised, what you wanna do is:

    1st. go to your VBA editor (Press alt+F11)
    on the left side, you'll see somethings name "Module"

    2nd. just double click any module
    you'll see some that has contents, and others that doesnt
    find one that doesnt have contents,

    3rd. Paste the code created by stnkynts
    just copy all the code he created and remember its sub name "RunME"
    then you'll paste it on this part (the module)

    4th. close the editor (just hit the "X" button on the top right)
    then go to your macros and asign it to the button you created on that page like how you did with the macros you had..

    5th. click "Save" before testing it coz after macros are run, it will not let you undo the action made...




    and

    if the tips we gave you helped:
    click the star "*" icon that says add reputation (to say thank you)
    and mark this thread closed by going to the top of the thread and clicking "Thread Tools"
    then select "Mark as solved"

+ 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. Running add-in's macros from the Macro (ALT+F8) dialog
    By mark99k in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-07-2018, 11:32 AM
  2. [SOLVED] Macro running other macros does not fully execute
    By gle in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-08-2013, 08:13 AM
  3. Replies: 19
    Last Post: 05-31-2011, 09:00 AM
  4. Running Macros within a Macro
    By mcantrell in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-17-2010, 04:22 PM
  5. Macro message yet no macros running....
    By Steve-B in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-10-2008, 09:36 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