Jump to content
Macro Express Forums

Swtiching to previous window


MEnewb1143

Recommended Posts

Any way to switch to the previous/last window? Long story short, I've got a Visual Basic window open that I made with some buttons. When I click on a button, it starts to run the macro from that window, not the one intended for.

 

Can't you just use Activate Window as one of your first commands, to switch to the target window? If its name changes, you could adapt the method from your last thread.

 

--

Terry, East Grinstead, UK

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...