PC Review


Reply
Thread Tools Rate Thread

AppActivate syntax - help needed

 
 
Tom Joseph
Guest
Posts: n/a
 
      26th Feb 2009
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 With Quote
 
 
 
 
Tim Williams
Guest
Posts: n/a
 
      28th Feb 2009
Have you tried

AppActivate Application.Caption

?

Assuming this code is running in Excel.

Tim


"Tom Joseph" <(E-Mail Removed)> wrote in message
news:964BBA71-F8C8-42B2-BE3A-(E-Mail Removed)...
>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 With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: SQL Syntax Help Needed John W. Vinson Microsoft Access VBA Modules 0 7th May 2009 08:11 PM
AppActivate syntax and question Tom Joseph Microsoft Excel Programming 2 13th Feb 2009 11:57 PM
Re: iif syntax help needed Roger Carlson Microsoft Access Queries 0 29th Jan 2009 05:07 PM
Syntax needed to get needed reports Frank Lueder Microsoft Access Getting Started 16 6th Jan 2005 02:16 PM
Syntax needed for With count Microsoft Excel Programming 4 6th Apr 2004 02:33 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:05 PM.