Results 1 to 4 of 4

Focus on SAP window using VBA

Threaded View

  1. #1
    Registered User
    Join Date
    03-28-2013
    Location
    CZECH
    MS-Off Ver
    Excel 2007
    Posts
    17

    Focus on SAP window using VBA

    Hi im back again.
    Now I beg for help with focusing on another window during script being processed. Its SAP window. For SAP franchise its SAP ARP - transaction CO02 - change of order - adding an attachment. Im in the final step where small import window pops up and I just need to insert or search for the path of the file I want to add. Its kind of microsoft window - on the left are large buttons with desktop, documents and 2-3 more. But its called Import on the left upper corner. I want to use the sendkeys prompt - the path will be allways the same eg C:\File\xxx.pdf. So I thought it will be very easy just call the macro recorded in sap until the window shows, then sendkeys "C:\File\xxx.pdf" then continue with SAP macro to okay it and save - end.
    Problem is when the window show and I sendkeys - it does not write anything in path box. When i run the macro until the window shows and type something on kb it write normally in the box.

    Can somebody help me please with this? Ive tried an application"focus" ("microsoft") prompt (quotes are for I cant remember the exact phrase I dont have the excel and file with macro here) It does not help... maybe because its not windows window but SAP window.
    Windows 7, Office 2007, work computer - so I dont have access to all OS features, but I think it does not matter.

    Thanks very much for your replies.
    Mirek
    Last edited by Mimoa; 12-14-2013 at 10:04 AM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] How to toggle focus between INTERNET explorer window and WINDOWS explorer window using VBA
    By tnuis in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-08-2013, 03:29 PM
  2. Bring Focus to VBscript Window
    By vs604 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-10-2012, 09:06 PM
  3. easiest way to get window focus with sendkeys?
    By qwyz in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-27-2009, 09:38 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. Set focus on sheet and keep viewing vba window
    By helmekki in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-29-2005, 06:46 AM

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