|
| Author |
Message |
Juan Dent
Joined: 04 Oct 2007 Posts: 4
|
Posted: Sat Aug 05, 2006 10:00 pm Post subject: How to add references to a VB6 or VBA project programaticall |
|
|
Hi,
I know well how to add a reference to a VB6 or VBA project interactively via
the menu. What I need is how to add a reference (or remove it)
programatically - that is, if I was driving VB6 or controlling VBA.
Anyone?
--
Thanks in advance,
Juan Dent, M.Sc.
Archived from group: microsoft>public>vb>ole>automation |
|
| Back to top |
|
 |
Luke Zhang [MSFT]
Joined: 04 Oct 2007 Posts: 2
|
Posted: Mon Aug 07, 2006 10:30 am Post subject: RE: How to add references to a VB6 or VBA project programati |
|
|
Hello Juan,
Did you plan an Visual Basic 6.0 add-in application or something else? If
you want to build an Add-in for Visual Basic 6.0, you may take a look
"microsoft development Enviroment" (DTE), it provide the rich control a
project, for example, create a project and add project items.
Here are an article about this:
Visual Studio 6.0 Extensibility Fundamentals
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnvs600/htm
l/vsextens.asp
Sincerely,
Luke Zhang
Microsoft Online Community Support
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights. |
|
| Back to top |
|
 |
Juan Dent
Joined: 04 Oct 2007 Posts: 4
|
Posted: Mon Aug 07, 2006 4:02 pm Post subject: RE: How to add references to a VB6 or VBA project programati |
|
|
Hi,
Actually I am dealing with VBA 6.4 not VB6 - I just assume the approach to
their automation would be very similar...
Do you know about this?
--
Thanks in advance,
Juan Dent, M.Sc.
"Luke Zhang [MSFT]" wrote:
> Hello Juan,
>
> Did you plan an Visual Basic 6.0 add-in application or something else? If
> you want to build an Add-in for Visual Basic 6.0, you may take a look
> "microsoft development Enviroment" (DTE), it provide the rich control a
> project, for example, create a project and add project items.
>
> Here are an article about this:
>
> Visual Studio 6.0 Extensibility Fundamentals
> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnvs600/htm
> l/vsextens.asp
>
> Sincerely,
>
> Luke Zhang
>
> Microsoft Online Community Support
> ==================================================
> Get notification to my posts through email? Please refer to
> http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
> ications.
>
> Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
> where an initial response from the community or a Microsoft Support
> Engineer within 1 business day is acceptable. Please note that each follow
> up response may take approximately 2 business days as the support
> professional working with you may need further investigation to reach the
> most efficient resolution. The offering is not appropriate for situations
> that require urgent, real-time or phone-based interactions or complex
> project analysis and dump analysis issues. Issues of this nature are best
> handled working with a dedicated Microsoft Support Engineer by contacting
> Microsoft Customer Support Services (CSS) at
> http://msdn.microsoft.com/subscriptions/support/default.aspx.
> ==================================================
>
> This posting is provided "AS IS" with no warranties, and confers no rights.
>
>
>
> |
|
| Back to top |
|
 |
Luke Zhang [MSFT]
Joined: 04 Oct 2007 Posts: 2
|
Posted: Tue Aug 08, 2006 6:47 am Post subject: RE: How to add references to a VB6 or VBA project programati |
|
|
Hello Juan,
Not like Word or Excel, Visual Studio 6.0 IDE doesn't provide automation
interface so that we can manage the project like we manage word docments in
word with automation. Also, we cannot add/remove a reference within a
project itself. What we can do is to create a Add-in component and use DTE
to operate a project and its items.
I think this also implement to VBA. Anyway, I think you may also post this
question in microsoft.public.office.developer.vba. Maybe you can find a
better solution there.
Sincerely,
Luke Zhang
Microsoft Online Community Support
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
|
|
| Back to top |
|
 |
|
|