Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can VBA running in a background window bring itself to the foreground 1

Status
Not open for further replies.

vamoose

Programmer
Oct 16, 2005
320
MX
I have an Excel 2000 sheet using VBA to refresh itself at set intervals throughout the day. Can VBA be used to bring this sheet to the foreground, active window, if someone places it in the background ? Thanks for any input or advice.
 
You may try this:
Application.WindowState = xlNormal

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Tried your code PHV but this does not bring it forward if placed in the background. Somehow can you set the Active window to Excel("VPD.xls") and bring it forward as well ?
Thanks
 
And this ?
AppActivate Application.Caption

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top