S
Scott
Before you send me to the Excel newsgroups, please read on...
We have an Excel macro that reads information from a Visio drawing if -- and
only if -- there is a valid license file on the PC (the operation of the
license mechanism isn't relevant). Because of the calls to Visio, the Visio
type library is included in the references of the Excel VBA project.
If there is not a valid license on the PC, the spreadsheet still opens but
doesn't use any of the Visio methods, i.e., the Visio-related code is
completely bypassed.
Here's the weird part: the Excel code works fine in the non-licensed case if
Visio is installed on the PC. However, it fails with "compile errors" if
Visio is not installed on the PC.
It turns out that the problem is the existence of a couple of undeclared
variables: such simple things as the "i" in "For i = 1 to 10".
When I declare all of the variables, the code works correctly without Visio.
Any idea what's going on here???
Thanks,
Scott
We have an Excel macro that reads information from a Visio drawing if -- and
only if -- there is a valid license file on the PC (the operation of the
license mechanism isn't relevant). Because of the calls to Visio, the Visio
type library is included in the references of the Excel VBA project.
If there is not a valid license on the PC, the spreadsheet still opens but
doesn't use any of the Visio methods, i.e., the Visio-related code is
completely bypassed.
Here's the weird part: the Excel code works fine in the non-licensed case if
Visio is installed on the PC. However, it fails with "compile errors" if
Visio is not installed on the PC.
It turns out that the problem is the existence of a couple of undeclared
variables: such simple things as the "i" in "For i = 1 to 10".
When I declare all of the variables, the code works correctly without Visio.
Any idea what's going on here???
Thanks,
Scott