Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Is there a way to use code to remove userforms in a
workbook? |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Is there a way to use code to remove userforms in a
workbook? See comments at start of following Sub. HTH, Merjet Sub DeleteUserForms() ' 1. need to check "Microsoft Visual Basic For Applications ' Extensibility 5.3" at VBE menu Tools | References ' 2. need to check next "Trust access to Visual Basic Project" ' at Excel menu Tools | Macro | Security | Trusted Sources Dim VBComp As VBIDE.VBComponent Dim VBComps As VBIDE.VBComponents Set VBComps = ThisWorkbook.VBProject.VBComponents For Each VBComp In VBComps If VBComp.Type = vbext_ct_MSForm Then VBComps.Remove VBComp Next VBComp End Sub |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Help with Userforms | Excel Discussion (Misc queries) | |||
I need some help with userforms | Charts and Charting in Excel | |||
I need some help with userforms | Excel Discussion (Misc queries) | |||
userforms | Excel Programming | |||
userforms | Excel Programming |