
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
------------------------------------------------