General information
Category:
Coding, syntax & commands
>Hi François,
>
>There is a workaround to that error you had mentioned.
>
>oExcel = GETOBJECT(,"Excel.application")
>
>would result in an error if an excel session is not running. You need to pass an empty string as the first parameter. This way if an excel session is running you get an object reference to it otherwise a new session is created and an object reference is returned.
>
>oExcel = GETOBJECT("","Excel.application")
>oExcel.Visible = .T.
>
Very useful. Thanks a lot
François
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only