+ Reply to Thread
Results 1 to 1 of 1

VBA Set MS Word as the active window

  1. #1
    Registered User
    Join Date
    08-31-2011
    Location
    Bristol
    MS-Off Ver
    Excel 2007
    Posts
    43

    VBA Set MS Word as the active window

    I have some code which exports some data from excel to word.

    At the end of this code, I want it to select some specific text in word, ready so that when the user types, it will overwrite this text.

    At the moment I have used a "Find" to highlight the text.

    Please Login or Register  to view this content.
    The only trouble is, excel is still the active application, so when the user types, it just goes into excel. How do I set word as the active window?


    EDIT: Solved the problem. It was as simple as:
    Please Login or Register  to view this content.
    Last edited by Gaz_m2k5; 06-25-2012 at 11:31 AM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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