C
Cheer
This is really a two part question.
Part 1. Just for the sake of argument, suppose I, in developing an
Excel add-in, included a few extraneous References in the VBE - i.e.,
went to Tools/References and clicked on something I didn't really
need. For example, I see I have the "Microsoft Windows Installer
Object Library" checked, and I'm pretty sure I'm' not using anything
from that library. Will Excel uncheck an unused reference? If not, is
there an easy way to tell if that reference really needs to be
included?
Part 2. I would like to become a convert to late binding so I don't
have to add a lot of references programmatically. Is there a resource
somewhere that will tell me what to specify for the arguments for
"CreateObject" for things like "Microsoft HTML Object Library,"
"Microsoft XML, v3.0, " or "OLE Automation"? I''m most concerned with
how to do "Microsoft XML, v3.0" as I'm getting errors when I try to
install my add-in on machines other than my own. I understand I will
no longer be able to use "Dim oHTTP As MSXML2.XMLHTTP30," but can
someone give me the correct syntax for what should replace it? I know
I have to start with "Dim oHTTP as object," but beyond that I'm a bit
unsure. The below does not work:
Dim obj As Object
Set obj = CreateObject("MSXML2.XMLHTTP30")
TIA for any help.
Part 1. Just for the sake of argument, suppose I, in developing an
Excel add-in, included a few extraneous References in the VBE - i.e.,
went to Tools/References and clicked on something I didn't really
need. For example, I see I have the "Microsoft Windows Installer
Object Library" checked, and I'm pretty sure I'm' not using anything
from that library. Will Excel uncheck an unused reference? If not, is
there an easy way to tell if that reference really needs to be
included?
Part 2. I would like to become a convert to late binding so I don't
have to add a lot of references programmatically. Is there a resource
somewhere that will tell me what to specify for the arguments for
"CreateObject" for things like "Microsoft HTML Object Library,"
"Microsoft XML, v3.0, " or "OLE Automation"? I''m most concerned with
how to do "Microsoft XML, v3.0" as I'm getting errors when I try to
install my add-in on machines other than my own. I understand I will
no longer be able to use "Dim oHTTP As MSXML2.XMLHTTP30," but can
someone give me the correct syntax for what should replace it? I know
I have to start with "Dim oHTTP as object," but beyond that I'm a bit
unsure. The below does not work:
Dim obj As Object
Set obj = CreateObject("MSXML2.XMLHTTP30")
TIA for any help.