Problem with AppActivate ("Microsoft Excel")

R

Raj

Hi,

I have a worksheet where a Userform appears on worksheet activation.
The focus was however remaining on the Userform. To get focus to the
worksheet, I was using the command AppActivate ("Microsoft Excel").
This was working fine, till suddenly the "Invalid call" error began
appearing. Now I have changed the command to AppActivate
(Application.Caption) and it seems to be working fine. However, I am
apprehensive that this too may stop working in future. Can anybody
help in explaining this behaviour and its cause?

Thanks in advance for all the help

Regards,
Raj
PS: The file name remained the same. It is likely that this happened
because some macro code was changed.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top