H
hscowan
Hi,
I have code that is generated in VBA to add modules to the workbook
module - this works fine.
The problem is that the workbook code invokes functions & subroutines
that are contained in the add-in, so far not so bad - all that should
be required for the workbook code to function is a reference to the
add-in. I don't want to make the reference thru the VB editor, I want
it to be done programatically.
I thought that this should work, but it just gets a "subscript out of
range" error. I know that the name is spelled correctly. Any ideas why
this is bombing?
Code:
--------------------
' create the reference to the addin so we can access the
If AddIns("SabaFunctions").Installed = False Then
AddIns("SabaFunctions").Installed = True
End If
I have code that is generated in VBA to add modules to the workbook
module - this works fine.
The problem is that the workbook code invokes functions & subroutines
that are contained in the add-in, so far not so bad - all that should
be required for the workbook code to function is a reference to the
add-in. I don't want to make the reference thru the VB editor, I want
it to be done programatically.
I thought that this should work, but it just gets a "subscript out of
range" error. I know that the name is spelled correctly. Any ideas why
this is bombing?
Code:
--------------------
' create the reference to the addin so we can access the
If AddIns("SabaFunctions").Installed = False Then
AddIns("SabaFunctions").Installed = True
End If