Discussion:
Addin installed but Reference not checked in VBE
(too old to reply)
zSplash
2005-08-09 19:01:57 UTC
Permalink
My addin is installed and checked, but the reference to the addin is not
"checked" in the references in the VBE. I have a sub in the document_new
event that is supposed to run, but since an error is occurring since the
reference is not checked.

How can I make sure the reference to the addin is checked? (I have already
tried putting a shortcut to the addin in the startup folder).

TIA
Cindy M -WordMVP-
2005-08-12 08:16:31 UTC
Permalink
Hi ZSplash,
Post by zSplash
My addin is installed and checked, but the reference to the addin is not
"checked" in the references in the VBE. I have a sub in the document_new
event that is supposed to run, but since an error is occurring since the
reference is not checked.
How can I make sure the reference to the addin is checked? (I have already
tried putting a shortcut to the addin in the startup folder).
Have you tried using the VBE (Visual Basic Extensibility) functionality? That
will let you dynamically activate/add a reference to an outside project,
instead of setting the reference via Tools/References. Try typing this into
the VB editor, then press F1

ActiveDocument.VBProject.References.AddFromGuid

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :-)
Chuck Henrich
2005-08-12 17:17:02 UTC
Permalink
Hi Cindy

What's the best way to get the GUID for an add-in? TIA...
--
Chuck Henrich
www.ProductivityApps.com
Post by Cindy M -WordMVP-
Hi ZSplash,
Post by zSplash
My addin is installed and checked, but the reference to the addin is not
"checked" in the references in the VBE. I have a sub in the document_new
event that is supposed to run, but since an error is occurring since the
reference is not checked.
How can I make sure the reference to the addin is checked? (I have already
tried putting a shortcut to the addin in the startup folder).
Have you tried using the VBE (Visual Basic Extensibility) functionality? That
will let you dynamically activate/add a reference to an outside project,
instead of setting the reference via Tools/References. Try typing this into
the VB editor, then press F1
ActiveDocument.VBProject.References.AddFromGuid
Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org
This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :-)
Cindy M -WordMVP-
2005-08-13 08:55:28 UTC
Permalink
Hi Chuck,
Post by Chuck Henrich
What's the best way to get the GUID for an add-in? TIA...
--
Look it up in the Registry :-) Every Addin should have a static GUID value, that
will be the same on every computer.

-- Cindy
Post by Chuck Henrich
Post by Cindy M -WordMVP-
Hi ZSplash,
Post by zSplash
My addin is installed and checked, but the reference to the addin is not
"checked" in the references in the VBE. I have a sub in the document_new
event that is supposed to run, but since an error is occurring since the
reference is not checked.
How can I make sure the reference to the addin is checked? (I have already
tried putting a shortcut to the addin in the startup folder).
Have you tried using the VBE (Visual Basic Extensibility) functionality? That
will let you dynamically activate/add a reference to an outside project,
instead of setting the reference via Tools/References. Try typing this into
the VB editor, then press F1
ActiveDocument.VBProject.References.AddFromGuid
Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply in
the newsgroup and not by e-mail :-)
Chuck Henrich
2005-08-15 10:09:02 UTC
Permalink
Hi Cindy
Post by Cindy M -WordMVP-
Look it up in the Registry :-)
I kinda figured that. Thanks again...
--
Chuck Henrich
www.ProductivityApps.com
Post by Cindy M -WordMVP-
Hi Chuck,
Post by Chuck Henrich
What's the best way to get the GUID for an add-in? TIA...
--
Look it up in the Registry :-) Every Addin should have a static GUID value, that
will be the same on every computer.
-- Cindy
Post by Chuck Henrich
Post by Cindy M -WordMVP-
Hi ZSplash,
Post by zSplash
My addin is installed and checked, but the reference to the addin is not
"checked" in the references in the VBE. I have a sub in the document_new
event that is supposed to run, but since an error is occurring since the
reference is not checked.
How can I make sure the reference to the addin is checked? (I have already
tried putting a shortcut to the addin in the startup folder).
Have you tried using the VBE (Visual Basic Extensibility) functionality? That
will let you dynamically activate/add a reference to an outside project,
instead of setting the reference via Tools/References. Try typing this into
the VB editor, then press F1
ActiveDocument.VBProject.References.AddFromGuid
Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org
This reply is posted in the Newsgroup; please post any follow question or reply in
the newsgroup and not by e-mail :-)
Loading...