![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Christchurch New Zealand
Posts: 1,030
|
That would be so handy instead of calling it module1 call it a name any Ideas??
|
|
|
|
|
|
#2 |
|
Board Regular
Join Date: Feb 2002
Posts: 74
|
In the Project Explorer, you can select any module, then hit F4 to pull up the (single-entried) properties box. This lets you change the name manually.
Or you can do something like ActiveWorkbook.VBProject.VBComponents("Module1").Name = "xyzzy" (You can also use objects like ActiveWorkbook.VBProject.VBComponents("Module1").CodeModule to do all sorts of wacky dynamic things to your VBA code.)
__________________
"Interfere? Of course we should interfere! Always do what you're best at, that's what I say!" -- The Doctor, Nightmare of Eden |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|