Hi,
I want to use an external software called "Surfer" from vba. If I manually check "Surfer 10 Data Type" reference in vba, it works fine, but it requires me to check the reference library every time I open a new file. To do it programmatically I tried following commands:
ActiveWorkbook.VBProject.References.AddFromFile "C:\Program Files\Golden Software\Surfer 10\Surfer.exe"
ActiveWorkbook.VBProject.References.AddFromGuid "{54C3F9A2-980B-1068-83F9-0000C02A351C}", 1, 0
Any of these commands does check the reference library in vba, but the surfer command is not recognized. Is there any other line of code that I should write to make it work?
Thanks,
Nasser
Bookmarks