#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default Sort subs

I have a workbook with several modules and many subs and functions within
each module. What is the easiest way to get the Visual Basic Editor to sort
the macros within each module to put them in alphbetic order?
--
Gary's Student
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Sort subs

There is no simple way to do this. And it begs the question, why
do it? The procedures are listed alphabetically in the right-side
dropdown at the top of the code window. You can select a proc
there and the VBE will go directly to that proc.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"Gary''s Student" wrote
in message
...
I have a workbook with several modules and many subs and
functions within
each module. What is the easiest way to get the Visual Basic
Editor to sort
the macros within each module to put them in alphbetic order?
--
Gary's Student



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Sort subs

And on top of what Chip wrote...

There's a couple of buttons on the bottom of the code window. (These buttons
are to the left of the bottom scroll bar.)

If you let your cursor linger over each of them, you'll see: "Procedure view"
and "Full Module view".

If you go into procedure view, you won't even know about the other procedures.
(Well, you can still pageup/pagedown through them--but they're almost
invisible(?).)

Gary''s Student wrote:

I have a workbook with several modules and many subs and functions within
each module. What is the easiest way to get the Visual Basic Editor to sort
the macros within each module to put them in alphbetic order?
--
Gary's Student


--

Dave Peterson
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default Sort subs

Thank you both very much. I now see that by using only a single module, I
can get much better visibility and access to the pile o'sutff that I have
collected.
--
Gary''s Student


"Dave Peterson" wrote:

And on top of what Chip wrote...

There's a couple of buttons on the bottom of the code window. (These buttons
are to the left of the bottom scroll bar.)

If you let your cursor linger over each of them, you'll see: "Procedure view"
and "Full Module view".

If you go into procedure view, you won't even know about the other procedures.
(Well, you can still pageup/pagedown through them--but they're almost
invisible(?).)

Gary''s Student wrote:

I have a workbook with several modules and many subs and functions within
each module. What is the easiest way to get the Visual Basic Editor to sort
the macros within each module to put them in alphbetic order?
--
Gary's Student


--

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
Sort subs. by amount Martin ©¿©¬ @REMOVETHIS.plus.com Excel Discussion (Misc queries) 4 March 8th 06 05:01 PM
Scope of Subs? Ken Loomis Excel Programming 9 August 6th 05 07:36 PM
Private subs Flima Excel Programming 1 January 7th 05 10:05 PM
Stringing Subs Randal W. Hozeski Excel Programming 2 May 28th 04 04:05 PM
calling subs Mike Excel Programming 4 April 8th 04 08:22 PM


All times are GMT +1. The time now is 06:49 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"