Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Jaqi
 
Posts: n/a
Default Sorting Worksheet Tabs

How do I sort worksheets in a workbook based on tab text?
  #2   Report Post  
JE McGimpsey
 
Posts: n/a
Default

See

http://cpearson.com/excel/sortws.htm

In article ,
"Jaqi" wrote:

How do I sort worksheets in a workbook based on tab text?

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 12
Default Sorting Worksheet Tabs

I visited the link below and see the function to sort by tab(sheet) name, but
I do not know where to type this function in. I don't know what all of the it
means, but I thought I would poke at it until I make it work for me.
--
jana


"JE McGimpsey" wrote:

See

http://cpearson.com/excel/sortws.htm

In article ,
"Jaqi" wrote:

How do I sort worksheets in a workbook based on tab text?


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 12
Default Sorting Worksheet Tabs

i copied and pasted it into visual basic. i substituted FirstToSort with
Sheet1.
am i on the right path?
i have 311 sheets. each sheet is a person's name.
help???
--
jana


"janabanana" wrote:

I visited the link below and see the function to sort by tab(sheet) name, but
I do not know where to type this function in. I don't know what all of the it
means, but I thought I would poke at it until I make it work for me.
--
jana


"JE McGimpsey" wrote:

See

http://cpearson.com/excel/sortws.htm

In article ,
"Jaqi" wrote:

How do I sort worksheets in a workbook based on tab text?


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default Sorting Worksheet Tabs

If you're not familiar with VBA and macros, see David McRitchie's site for
more on "getting started".

http://www.mvps.org/dmcritchie/excel/getstarted.htm

or Ron de De Bruin's site on where to store macros.

http://www.rondebruin.nl/code.htm

In the meantime..........

First...create a backup copy of your original workbook.

To create a General Module, hit ALT + F11 to open the Visual Basic Editor.

Hit CRTL + r to open Project Explorer.

Find your workbook/project and select it.

Right-click and InsertModule. Paste the code in there. Save the
workbook and hit ALT + Q to return to your workbook.

Run or edit the macro by going to ToolMacroMacros.

You can also assign this macro to a button or a shortcut key combo.


Gord Dibben MS Excel MVP


On Tue, 15 Jul 2008 12:08:02 -0700, janabanana
wrote:

I visited the link below and see the function to sort by tab(sheet) name, but
I do not know where to type this function in. I don't know what all of the it
means, but I thought I would poke at it until I make it work for me.




  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
Default Sorting Worksheet Tabs

Nope.

Just copy Chip's code into a general module inside that VBE window. At the
bottom of that web page, there's a link to a module that can be imported into
your workbook's project:

http://cpearson.com/Zips/modSortingWorksheets.zip

Then create another procedure that call's Chip's code:

Option Explicit
Sub testme()
If SortWorksheetsByName(0, 0, "", False) = False Then
MsgBox "something bad happened"
Else
MsgBox "ok--check the sheets"
End If
End Sub

janabanana wrote:

i copied and pasted it into visual basic. i substituted FirstToSort with
Sheet1.
am i on the right path?
i have 311 sheets. each sheet is a person's name.
help???
--
jana

"janabanana" wrote:

I visited the link below and see the function to sort by tab(sheet) name, but
I do not know where to type this function in. I don't know what all of the it
means, but I thought I would poke at it until I make it work for me.
--
jana


"JE McGimpsey" wrote:

See

http://cpearson.com/excel/sortws.htm

In article ,
"Jaqi" wrote:

How do I sort worksheets in a workbook based on tab text?


--

Dave Peterson
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Worksheet Tabs TheJaxSun Excel Discussion (Misc queries) 5 December 4th 05 03:37 AM
Question about sorting in protected worksheet SJC Excel Worksheet Functions 6 March 24th 05 10:35 PM
how to change the default font on the worksheet tabs? Mark Dvorkin Excel Discussion (Misc queries) 3 March 8th 05 03:55 AM
Worksheet Tabs The Good Deeds Team Excel Discussion (Misc queries) 6 February 18th 05 09:59 PM
move the worksheet tabs in a workbook to left Boriss Excel Discussion (Misc queries) 1 December 6th 04 08:28 PM


All times are GMT +1. The time now is 05:37 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"