Wrox Programmer Forums
|
VB How-To Ask your "How do I do this with VB?" questions in this forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 29th, 2004, 12:46 PM
Registered User
 
Join Date: Jul 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Remove UserForm

I have a program that has numerous userforms, but I want an easy way for them to be changed if necessary. I'm trying to write a program that does this, but can't seem to figure out how to delete a userform. I am currently using the following line of code and can't seem to get it to work.

Application.VBE.VBProjects("Check_Form").VBCompone nts.Remove(userforms("Userform1"))






Similar Threads
Thread Thread Starter Forum Replies Last Post
modeless userform randomwanderer Excel VBA 3 December 3rd, 2008 08:59 AM
Excel UserForm ttitto Excel VBA 0 December 11th, 2007 12:20 PM
Userform - Modeless chrislim1 Excel VBA 10 September 20th, 2006 12:36 PM
Remove UserForm lostthought Excel VBA 0 July 29th, 2004 12:47 PM
Surface in a userform Rosser VB How-To 0 March 31st, 2004 06:07 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.