How can I load Surfer in a script using a different SET file?

Use the shell( ) command to specify the SET file on the command line, then use the GetObject( ) command to use the existing instance of Surfer.


ExeFile = "c:\program files\golden software\surfer 16\" + "surfer.exe"
SetFile = "c:\program files\golden software\surfer 16\" + "new.set"
Shell(ExeFile+" /Set "+Chr(34)+SetFile+Chr(34),1)
Wait 5
Set Srf = GetObject(,"Surfer.Application")


Updated November 2, 2018

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request


Please sign in to leave a comment.