+ Reply to Thread
Results 1 to 2 of 2

How to activate window with Excel VBA

  1. #1
    Registered User
    Join Date
    11-12-2017
    Location
    Korea
    MS-Off Ver
    I don't Know Sorry
    Posts
    5

    How to activate window with Excel VBA

    Hello, I'm lover of excel vba.

    Nowadays I'm making program that automating repeated work procedure by controlling mouse and keyboard via

    Excel VBA.

    For that, I need to Activate Program Window.(I already tried my code without Activating Program Window, and

    the result is somewhat strange for sometimes. So I want to add the code to Activate Window.)



    Belows are The code I found on the web.

    It activates Internet Explorer Window.


    Please Login or Register  to view this content.
    However, How Can I activate third party program?(I mean, not window-basic-program.)

    I looked into that third party program's title bar.

    FindWindow Function has two parameters : IpClassName, IpWindowName.

    I read the description of this function, and it seemed to it can functional with only IpWindowName.

    So I tried to activate window with that title bar's name, but it didn't work.

    and I have no idea how to get classname of third party program.

    Thank you for your reply in advance.
    Last edited by alansidman; 02-03-2018 at 09:52 AM.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,851

    Re: How to activate window with Excel VBA

    Code Tags Added
    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found at http://www.excelforum.com/forum-rule...rum-rules.html



    (I have added them for you today. Please take a few minutes to read all Forum Rules and comply in the future.)
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

+ 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. activate a window based on date
    By simeonmein in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-06-2014, 08:50 AM
  2. Activate window
    By stojko89 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-18-2011, 07:45 AM
  3. window firefox do not activate
    By ilkamalo in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-03-2010, 09:25 AM
  4. Activate Excel window if focus lost
    By beeawwb in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-01-2008, 08:27 PM
  5. Activate window with a macro
    By punter in forum Excel General
    Replies: 3
    Last Post: 01-17-2007, 05:33 PM
  6. Activate Window
    By marcjwright in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-09-2007, 07:26 AM
  7. [SOLVED] Workbook.Activate / Window.Activate problem
    By Tim in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-03-2006, 07:40 PM
  8. [SOLVED] activate a Word Window from Excel VBA
    By ben in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-18-2005, 10:06 AM

Tags for this Thread

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