Hi
Is it possible to remove userforms using VBA, I have tried
andPlease Login or Register to view this content.
Please Login or Register to view this content.
Hi
Is it possible to remove userforms using VBA, I have tried
andPlease Login or Register to view this content.
Please Login or Register to view this content.
Do you mean you want to remove the useform and associated code from a vba project using vba code?
If so you will need to access the userform via the VBE object model.
Why do you need to do this?
Hi
I have a form made up of a series of user forms (30+) they are all coded and the different forms open according to the information you input (about 6 max). The Data is then transfered to an excel sheet and emailed to the admin team who do not need the user friendly format. I want to remove the userforms in order to make the file size smaller.
cheers
Si
See Chip's page on programming the vbe
http://www.cpearson.com/excel/vbe.aspx
Thanks Andy, this link proved very useful. I have come across another hurdle I cannot get over.
the VBA code is password protected, I know the password but I cannot get the VBE object to access it. I've tried "unprotect("password")" . is there a special way to unprotect it and reprotect it?
cheers
Si
There is not way to uprotect the vbe via code, without resorting to sendkeys.
Are you sure that you need 30+ UserForms?
If you don't want them in the finished workbook then create them in your PERSONAL.xls or an addin.
Hope that helps.
RoyUK
--------
For Excel Tips & Solutions, free examples and tutorials why not check out my web site
Free DataBaseForm example
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks