+ Reply to Thread
Results 1 to 4 of 4

Sorting on Multiple Sheets with Same Macro

  1. #1
    Registered User
    Join Date
    08-01-2012
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    8

    Sorting on Multiple Sheets with Same Macro

    I'm having trouble with getting a macro to change when I copy a sheet and rename it. I've put a macro button on each sheet and when I copy the sheet out and rename I still want the macro to work for the new sheet name. Currently when I hit the sort funchtion it refers back to the original sheet and sorts it.

    Thanks

  2. #2
    Registered User
    Join Date
    08-01-2012
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Sorting on Multiple Sheets with Same Macro

    Here is the current code. The sheet name is "Delray-D". I want to be able to copy the sheet and rename to "Bob". I want the macro to sort rows 7-300 on the "Bob" sheet the same way it did in "Delray-D" sheet.
    Thanks

    Please Login or Register  to view this content.

  3. #3
    Valued Forum Contributor
    Join Date
    05-07-2012
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    354

    Re: Sorting on Multiple Sheets with Same Macro

    Try...
    Please Login or Register  to view this content.
    Regards,
    Vandan

  4. #4
    Registered User
    Join Date
    08-01-2012
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Sorting on Multiple Sheets with Same Macro

    Worked like a charm. Thank you!

+ 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