Home |
Search |
Today's Posts |
#1
![]() |
|||
|
|||
![]()
Is there a cheat's way of changing the caption on many userform names in the
vb editor or do I have to go into them 1 by 1. I have about 80 of them I need to change Please advise Greg |
#2
![]() |
|||
|
|||
![]()
Hi Greg,
Here's some code that shows you an approach. Dim oVBMod As VBComponent Dim i As Long With ActiveWorkbook.VBProject For Each oVBMod In .VBComponents If oVBMod.Type = vbext_ct_MSForm Then i = i + 1 oVBMod.Properties("Caption") = "myForm" & i End If Next oVBMod End With -- HTH RP (remove nothere from the email address if mailing direct) "Greg B" wrote in message ... Is there a cheat's way of changing the caption on many userform names in the vb editor or do I have to go into them 1 by 1. I have about 80 of them I need to change Please advise Greg |
#3
![]() |
|||
|
|||
![]()
Thanks Bob
I have so many items which use the same caption I was going mad typing the same thing Thanks Again Greg |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Naming ranges? | Excel Discussion (Misc queries) | |||
Naming Ranges | Excel Discussion (Misc queries) | |||
Naming column in Index Function | Excel Worksheet Functions | |||
Naming a (date) constant | Excel Worksheet Functions | |||
Naming & renaming a sheet tab | Excel Worksheet Functions |