Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Bringing Excel to the front

Does VBA have a method for bringing the application window to the front? I
can do it with the Windows API but I'm hoping for a simpler solution, like
an "Activate" or "SetFocus".

TIA
--
Scott Holmes


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 124
Default Bringing Excel to the front

There's an ActivateMicrosoftApp method. Maybe this will do what you want.

On Mon, 25 Aug 2003 00:29:45 -0500, "Scott Holmes" wrote:

Does VBA have a method for bringing the application window to the front? I
can do it with the Windows API but I'm hoping for a simpler solution, like
an "Activate" or "SetFocus".

TIA


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,824
Default Bringing Excel to the front

This caused the excel icon on the taskbar to flash:

Application.Wait Now + TimeSerial(0, 0, 5)
AppActivate Application.Caption

(the .wait gave me time to activate a different program.)

Scott Holmes wrote:

I saw that one, but there is no constant for Excel. Thanks anyway

--
Scott Holmes
Cornerstone Solutions, Inc.

713-661-5200
"Myrna Larson" wrote in message
...
There's an ActivateMicrosoftApp method. Maybe this will do what you want.

On Mon, 25 Aug 2003 00:29:45 -0500, "Scott Holmes"

wrote:

Does VBA have a method for bringing the application window to the front?

I
can do it with the Windows API but I'm hoping for a simpler solution,

like
an "Activate" or "SetFocus".

TIA



--

Dave Peterson

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Bringing Excel to the front

For what it's worth, I solved the problem by minimizing the application that
was in front of Excel and that worked for this application. Thanks for the
input!

--
Scott Holmes
"Dave Peterson" wrote in message
...
This caused the excel icon on the taskbar to flash:

Application.Wait Now + TimeSerial(0, 0, 5)
AppActivate Application.Caption

(the .wait gave me time to activate a different program.)

Scott Holmes wrote:

I saw that one, but there is no constant for Excel. Thanks anyway

--
Scott Holmes
Cornerstone Solutions, Inc.

713-661-5200
"Myrna Larson" wrote in message
...
There's an ActivateMicrosoftApp method. Maybe this will do what you

want.

On Mon, 25 Aug 2003 00:29:45 -0500, "Scott Holmes"

wrote:

Does VBA have a method for bringing the application window to the

front?
I
can do it with the Windows API but I'm hoping for a simpler solution,

like
an "Activate" or "SetFocus".

TIA


--

Dave Peterson



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
Tables in excel- bringing down formulas for new records. Ben Excel Worksheet Functions 2 May 19th 10 12:35 AM
Bringing Data From Access To Excel Alistaire Green[_2_] Excel Worksheet Functions 8 July 30th 07 09:44 PM
Problems with bringing in pictures from Excel to Word jcarlos Excel Discussion (Misc queries) 1 April 17th 07 09:00 AM
Bringing in a Union Query with excel? S Davis Excel Worksheet Functions 3 August 24th 06 06:52 PM
Bringing Word doc into Excel Gary Excel Discussion (Misc queries) 1 March 10th 05 08:19 PM


All times are GMT +1. The time now is 08:59 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"