if swapp is nothing.....
Posted: Wed Sep 22, 2021 2:08 pm
hello all,
for a new macro project I searched the net for some code snippets.
In one of the references I have found a query whose sense I do not understand.
'check if application is open
if swapp is nothing then
msgbox "to execute the macro, swx must be open"
.....
what the query checked i still understand, but does that make sense with a swp macro at all? can the case occur at all?
A macro in swp format can only be executed via the corresponding function in swx, as far as I know you can't even run the macro editor without swx active, so starting the macro via the editor without swx active is also out of the question.
Why do i need this query then?
for a new macro project I searched the net for some code snippets.
In one of the references I have found a query whose sense I do not understand.
'check if application is open
if swapp is nothing then
msgbox "to execute the macro, swx must be open"
.....
what the query checked i still understand, but does that make sense with a swp macro at all? can the case occur at all?
A macro in swp format can only be executed via the corresponding function in swx, as far as I know you can't even run the macro editor without swx active, so starting the macro via the editor without swx active is also out of the question.
Why do i need this query then?