Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
No Name
 
Posts: n/a
Default Naming modules

Hi

Bit of a beginner here! I have a lot of modules in my personal workbook,
mostly set up by recording macros and then tweaking them.
My problem is that I've added and tweaked etc and now I have 19 modules -
called module 1 to module 19. The macros I use are scattered throughout
these, and I don't know which one does which bit without checking each one
individually. Is there any way of renaming modules or finding a certain
routine (say 'FixRightMinus') rather than looking at each module? I realise
it's probably a macro-management thing and I shouldn't have got into a bad
habit months ago!
Thanks.


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Naming modules

Go into the VBE
hit ctrl-r to view the project explorer
Select & expand your project in the project explorer
Hit F4 to see each the properties window

Select a module
rename it
Don't duplicate the name of any procedure or function or workbook name or
built-in function/property.

If you hit ctrl-f (to find), you can specify the current project.

Andy wrote:

Hi

Bit of a beginner here! I have a lot of modules in my personal workbook,
mostly set up by recording macros and then tweaking them.
My problem is that I've added and tweaked etc and now I have 19 modules -
called module 1 to module 19. The macros I use are scattered throughout
these, and I don't know which one does which bit without checking each one
individually. Is there any way of renaming modules or finding a certain
routine (say 'FixRightMinus') rather than looking at each module? I realise
it's probably a macro-management thing and I shouldn't have got into a bad
habit months ago!
Thanks.


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default Naming modules

To name a module, select it in the Project Explorer window, then just change
the name in the Properties window.

You can find any procedure by just doing Ctl-F, entering the Name and
selecting Current Project from the Search buttons, or just entering the
procedure name in the Immediate window, and Shift-F2 should take you
straight there.

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)



<Andy wrote in message ...
Hi

Bit of a beginner here! I have a lot of modules in my personal workbook,
mostly set up by recording macros and then tweaking them.
My problem is that I've added and tweaked etc and now I have 19 modules -
called module 1 to module 19. The macros I use are scattered throughout
these, and I don't know which one does which bit without checking each one
individually. Is there any way of renaming modules or finding a certain
routine (say 'FixRightMinus') rather than looking at each module? I
realise it's probably a macro-management thing and I shouldn't have got
into a bad habit months ago!
Thanks.



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 54
Default Naming modules

Go to View / Properties Window (or F4) and rename module there

"Andy" wrote:

Hi

Bit of a beginner here! I have a lot of modules in my personal workbook,
mostly set up by recording macros and then tweaking them.
My problem is that I've added and tweaked etc and now I have 19 modules -
called module 1 to module 19. The macros I use are scattered throughout
these, and I don't know which one does which bit without checking each one
individually. Is there any way of renaming modules or finding a certain
routine (say 'FixRightMinus') rather than looking at each module? I realise
it's probably a macro-management thing and I shouldn't have got into a bad
habit months ago!
Thanks.



  #5   Report Post  
Posted to microsoft.public.excel.programming
No Name
 
Posts: n/a
Default Naming modules

Thanks everyone - it's so easy when you know. I've been scouring the forums
for ages too!

Cheers!

"DomThePom" wrote in message
...
Go to View / Properties Window (or F4) and rename module there

"Andy" wrote:

Hi

Bit of a beginner here! I have a lot of modules in my personal workbook,
mostly set up by recording macros and then tweaking them.
My problem is that I've added and tweaked etc and now I have 19 modules -
called module 1 to module 19. The macros I use are scattered throughout
these, and I don't know which one does which bit without checking each
one
individually. Is there any way of renaming modules or finding a certain
routine (say 'FixRightMinus') rather than looking at each module? I
realise
it's probably a macro-management thing and I shouldn't have got into a
bad
habit months ago!
Thanks.





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
VBA - naming modules hhenrion Excel Programming 2 January 3rd 06 02:51 PM
Public, Private, Event modules, Forms modules,,, Jim May Excel Programming 11 October 31st 05 03:12 AM
Basic question - modules and class modules - what's the difference? Mark Stephens[_3_] Excel Programming 9 May 8th 05 11:48 AM
Naming class modules in Excel 2002 bryan Excel Discussion (Misc queries) 2 December 13th 04 11:42 AM
Naming Modules Leonard[_2_] Excel Programming 2 July 27th 03 09:03 PM


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

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

About Us

"It's about Microsoft Excel"