Adding a Form to a VB Add-In at Run time 
Author Message
 Adding a Form to a VB Add-In at Run time

When running an Add-In, I need to do one of the following:

1. Copy a Form from the ActiveVBProject to the running Add-In's Form's
collection cannot find a way to access the Forms collection. I figured that
I could do that by saving the ActiveVBProject's Form to a file and then
using an add from the file to get it into the Add-In's Forms collection.
However, I cannot find a way to access the Add-Ins forms collection as the
only member of the Projects collection is the ActiveVBProject.

2. Directly accessing, in the Add-In, the Forms collection in the
ActiveVBProject. I do not see any way to do this as I cannot find a way to
get to the Forms collection from the Project.

I need to do this because using the Forms collection seems to be the only
way to determine the type of each control on a Form. If I access the Form
via VBE, the type of each control gets returned as "VBControl", not very
useful.

--
http://www.*-*-*.com/ ; Programming and support for  Word macros,
including converting from WordBasic to VBA; Technical reviewing; Standards;
Product functional/design/specifications
------------------------------------------------



Wed, 19 Jan 2005 09:26:23 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Adding forms with code at run time

2. Adding controls to a form at run-time

3. Adding a form (or any object) at run time

4. Adding Command Controls to Dimensioned Forms at Run Time

5. Add controls to a form at run-time

6. Adding controls on a form at run-time

7. Adding controls to a form at run-time

8. Adding (loading) a Form at Run-Time ?

9. Adding controls to a form at run time

10. Adding controls to a form at run time

11. Adding objects to a form/frame at run time

12. Add a form to a project at run time

 

 
Powered by phpBB® Forum Software