Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Using same custom sort on multiple tabs within same spreadsheet  - Excel 2010

Posted on 2013-05-16
2
Medium Priority
?
292 Views
Last Modified: 2013-05-16
Experts,

I have a spreadsheet that has 10 tabs with the same data.  Each tab is representative of an enrollment month.

I would like to sort each tab the same way.  Is there a way to do this without doing a custom sort on each tab separately?
0
Comment
Question by:morinia
  • 2
2 Comments
 
LVL 49

Accepted Solution

by:
Martin Liss earned 2000 total points
ID: 39171827
Dim ws As Worksheet

For Each ws in Worksheets
    ' Do your thing
Next

Open in new window

0
 
LVL 49

Expert Comment

by:Martin Liss
ID: 39171834
The above would be put in a macro and the "do your thing" part could be a macro recorded while you sort one page and then generalized to replace the specific sheet name with "ws".
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes how you can use Custom Document Properties to store settings and other information in your workbook so that they will be available the next time you open the workbook.
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

972 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question