Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 51
Default AppActivate syntax - help needed

I am trying to use AppActivate to reset the focus to Excel.

When the workbook is not maximized and the title bar says Microsoft Excel
AppActivate ("Microsoft Excel") works fine.

If the workbook is maximized the above does not work.

The file name is Dashboard_v2441.xlsm and the title bar reads:
Dashboard_v2441.xlsm - Microsoft Excel
(when maximized).

Can someone please provide the exact syntax I would need to get this to work
reliably when maximized, with paren/quotes if needed?

Also, if there are any other considerations/tricks to get the focus reset
reliably, I would appreacte a note.

Thanks,

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 298
Default AppActivate syntax - help needed

Have you tried

AppActivate Application.Caption

?

Assuming this code is running in Excel.

Tim


"Tom Joseph" wrote in message
...
I am trying to use AppActivate to reset the focus to Excel.

When the workbook is not maximized and the title bar says Microsoft Excel
AppActivate ("Microsoft Excel") works fine.

If the workbook is maximized the above does not work.

The file name is Dashboard_v2441.xlsm and the title bar reads:
Dashboard_v2441.xlsm - Microsoft Excel
(when maximized).

Can someone please provide the exact syntax I would need to get this to
work
reliably when maximized, with paren/quotes if needed?

Also, if there are any other considerations/tricks to get the focus reset
reliably, I would appreacte a note.

Thanks,



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
AppActivate syntax and question Tom Joseph Excel Programming 2 February 13th 09 11:57 PM
VBA code to sum a row: syntax needed [email protected] Excel Discussion (Misc queries) 1 July 11th 05 06:41 PM
Please explain syntax needed Nobody[_3_] Excel Programming 1 June 3rd 04 10:50 PM
Multiple Condition syntax needed Jetheat Excel Programming 3 May 30th 04 11:18 PM
Syntax needed for With count Excel Programming 4 April 6th 04 02:33 PM


All times are GMT +1. The time now is 10:25 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"