View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Raj[_2_] Raj[_2_] is offline
external usenet poster
 
Posts: 150
Default Problem with AppActivate ("Microsoft Excel")

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.