+ Reply to Thread
Results 1 to 2 of 2

Applying Custom Macros to multiple worksheets

  1. #1
    Registered User
    Join Date
    08-28-2012
    Location
    New York
    MS-Off Ver
    Excel 2011
    Posts
    7

    Applying Custom Macros to multiple worksheets

    Hello all. Very new to both the forum and working with VBA. I have what I think should be a relatively easy problem. I have recorded a macro to sort on column C then sort on column A. My eventual goal is to be able to do this sort an 20 different sheets within the same workbook, but I have been unable to figure out how to apply this particular code to all the sheets other than recording the macro as I sort on each sheet. My basic code is as follows:


    Please Login or Register  to view this content.

    and I recorded doing the same thing over three worksheets here:



    Please Login or Register  to view this content.
    Whats more frustrating is I have been able to get what I need multiple other ways with other pieces of code (an array in one and this:

    Please Login or Register  to view this content.

    in another) but I can't get this copy one to work. Any help is greatly appreciated!

    Derek
    Last edited by Cutter; 08-28-2012 at 09:35 PM. Reason: Added code tags

  2. #2
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Applying Custom Macros to multiple worksheets

    @ dshanman

    Welcome to the forum.

    Please notice that code tags have been added to your post(s). The forum rules require them so please keep that in mind and add them yourself whenever showing code in any of your future posts. To see instructions for applying them, click on the Forum Rules button at top of the page and read Rule #3.
    Thanks.

+ 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