+ Reply to Thread
Results 1 to 2 of 2

Excel VBA to reference open word document

  1. #1
    Registered User
    Join Date
    09-17-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    5

    Excel VBA to reference open word document

    Hi....I have code which copies table information from word in to an excel spread sheet....see below....with the current script you have to select the word document but I would like it to pull the information from any word document that is open (this is opened from an e-mail attachment and there will only ever be on word document open at a time). The excel spread sheet where the data is copied to will always be open. How easy or not is this to do? The other alternative could be I that the word document is saved to a temporary file which this script calls.

    Please Login or Register  to view this content.
    Some guidance would be much appreciated

    Rgds



    Sharon
    Last edited by arlu1201; 12-21-2012 at 01:07 AM.

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,167

    Re: Excel VBA to reference open word document

    Is this solved?

    If you solve a problem yourself before anyone else has responded, please take a moment to describe your solution, chances are some other member will benefit.

    Also,

    I have added code tags to your post. As per forum rule 3, you need to use them whenever you put any code in your post. Please add them in future. If you need more information on how to use them, check my signature below this post.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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