View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.misc
Dave Peterson Dave Peterson is offline
external usenet poster
 
Posts: 35,218
Default WORKSHEET SORTING NOT WORKING?

This function was not meant to be called from a cell on a worksheet.

It was meant to be called from a different subroutine.

FARAZ QURESHI wrote:

From the archives I was directed to:

http://www.cpearson.com/excel/sortws.aspx

I entered the entire 4 pieces of code:
1. SortWorksheetsByName;
2. SortWorksheetsByNameArray;
3. GroupSheetsByColor; and
4. Supportive code;

in a single module by:

1. Alt+F11;
2. InsertModule;
3. Copying & pasting all the 4 parts;

Now I entered in one worksheet:
=SortWorksheetsByName(0,0,"NO")

The formula/function returns TRUE however how 2 make it work and do the
sorting of the worksheets???


--

Dave Peterson