+ Reply to Thread
Results 1 to 9 of 9

Macro that can apply a specific Macro to all sheets except first

  1. #1
    Registered User
    Join Date
    03-21-2014
    Location
    Germany
    MS-Off Ver
    Excel 2010
    Posts
    80

    Arrow Macro that can apply a specific Macro to all sheets except first

    Hello,

    Guys i have a macro which is designed for only one sheet..I want it modified so that I can apply it to all sheets except first parent sheet.

    Code is :
    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Macro that can apply a specific Macro to all sheets except first

    Maybe:

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    03-21-2014
    Location
    Germany
    MS-Off Ver
    Excel 2010
    Posts
    80

    Re: Macro that can apply a specific Macro to all sheets except first

    it is giving error
    Please Login or Register  to view this content.

    I have added a attatchment...you can try..

    Actually my code adjusts columns so that their peaks are in front of each other...
    Attached Files Attached Files
    Last edited by Haidar123; 04-01-2014 at 09:28 AM.

  4. #4
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Macro that can apply a specific Macro to all sheets except first

    Try:

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    03-21-2014
    Location
    Germany
    MS-Off Ver
    Excel 2010
    Posts
    80

    Re: Macro that can apply a specific Macro to all sheets except first

    It is working for this sheet because it has constant name ...I want it to work on other excel files whose every sheet has a different name...how to modify it ?
    Last edited by Haidar123; 04-01-2014 at 10:06 AM.

  6. #6
    Registered User
    Join Date
    03-21-2014
    Location
    Germany
    MS-Off Ver
    Excel 2010
    Posts
    80

    Re: Macro that can apply a specific Macro to all sheets except first


  7. #7
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Macro that can apply a specific Macro to all sheets except first

    Perhaps:

    Please Login or Register  to view this content.

  8. #8
    Registered User
    Join Date
    03-21-2014
    Location
    Germany
    MS-Off Ver
    Excel 2010
    Posts
    80

    Re: Macro that can apply a specific Macro to all sheets except first

    Thanks John it worked

  9. #9
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Macro that can apply a specific Macro to all sheets except first

    You're welcome. Glad to help out and thanks for the feedback and rep. Don't forget to mark this thread 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. [SOLVED] How to apply macro on particular sheets
    By Haikal_ in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-19-2014, 09:50 AM
  2. I want to apply this macro for all sheets...How?
    By AbhijeetM in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 03-13-2013, 09:13 AM
  3. vba code to apply a macro to a specific tab
    By 2seas in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-09-2012, 02:03 PM
  4. Apply macro to all sheets
    By Costasg in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-03-2011, 01:09 PM
  5. Apply macro to all sheets!!!
    By Sirishgreen in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-26-2007, 05:23 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