+ Reply to Thread
Results 1 to 2 of 2

How to make Excel Window as active window by using WinApi?

  1. #1
    Forum Contributor HerryMarkowitz's Avatar
    Join Date
    09-10-2012
    Location
    Europe
    MS-Off Ver
    Office 2021 - Win10
    Posts
    1,019

    How to make Excel Window as active window by using WinApi?

    https://learn.microsoft.com/en-us/wi...regroundwindow

    SetForegroundWindow brings the specified window into the foreground and activates the window according to above link.

    I am 64 bit Microsoft Excel 2021 user and the following code doesnt work for me.

    Please Login or Register  to view this content.
    You can find something useful in the following link.

    https://www.excelforum.com/excel-pro...-activate.html
    Last edited by HerryMarkowitz; 06-02-2025 at 11:41 AM.
    Sub DontForgetThese()
         If Your thread includes any code Then Please use code tags...
         If Your thread has been solved Then Please mark as solved...
         If Anybody has helped to you Then Please add reputation...
    End Sub

  2. #2
    Forum Contributor HerryMarkowitz's Avatar
    Join Date
    09-10-2012
    Location
    Europe
    MS-Off Ver
    Office 2021 - Win10
    Posts
    1,019

    Re: How to make Excel Window as active window by using WinApi?

    Solved.

    https://www.mrexcel.com/board/thread...gation.730660/

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 0
    Last Post: 03-14-2019, 10:57 AM
  2. [SOLVED] Change VBA code for a specific window to any active window
    By dawondr in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-25-2016, 04:00 PM
  3. Switch from Active Window to Variable Window/Rename Varaible Sheet
    By CravingGod in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-04-2016, 09:52 AM
  4. [SOLVED] Open workbook, and get its name, and make it active window.
    By Andrew Andromeda in forum Excel Programming / VBA / Macros
    Replies: 21
    Last Post: 01-20-2015, 09:00 AM
  5. [SOLVED] Make IE8 the active window
    By Megatronixs in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-28-2014, 01:41 AM
  6. resize active window ie: add to the height of the active window
    By hopefulhart in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-07-2014, 01:55 AM
  7. need help in making the current window as active window.
    By ashvija in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-27-2012, 06:04 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1