+ Reply to Thread
Results 1 to 2 of 2

Accesing Word Document from Excel???

  1. #1
    Registered User
    Join Date
    10-13-2004
    Posts
    11

    Accesing Word Document from Excel???

    Hi,

    This could be an interesting one for someone!

    I have a spreadsheet with an AutoShape and when I click on it it opens up a word document. This seems to be embedded in the workbook, it is not an external word doc.

    I decided to see what code is required to open this word doc. and recorded the macro. This is the piece of code:

    Application.Run "'PMI Full WkBk.xls'!Sheet291.ProjectSummary"

    ["ProjectSummary" is the word doc I presume. I cannot find any "Sheet291"]

    Now, what I want to do is call up this word document from another spreadsheet and copy the contents of it into this new spreadsheet.

    Any takers!
    Thanks in advance
    Liam

  2. #2
    moi
    Guest

    Re: Accesing Word Document from Excel???

    The line Application.Run "'PMI Full WkBk.xls'!Sheet291.ProjectSummary
    launches an Excel macro from workbook PMI Full WkBk.xls in worksheet
    Sheet291.
    In there you'll probably find the word doc specs. But isn't it easier to add
    a hyperlink to your shape, open the doc, copy the content and dump it in a
    new worksheet?



    "wjoc1" <[email protected]> schreef in
    bericht news:[email protected]...
    >
    > Hi,
    >
    > This could be an interesting one for someone!
    >
    > I have a spreadsheet with an AutoShape and when I click on it it opens
    > up a word document. This seems to be embedded in the workbook, it is
    > not an external word doc.
    >
    > I decided to see what code is required to open this word doc. and
    > recorded the macro. This is the piece of code:
    >
    > Application.Run "'PMI Full WkBk.xls'!Sheet291.ProjectSummary"
    >
    > ["ProjectSummary" is the word doc I presume. I cannot find any
    > "Sheet291"]
    >
    > Now, what I want to do is call up this word document from another
    > spreadsheet and copy the contents of it into this new spreadsheet.
    >
    > Any takers!
    > Thanks in advance
    > Liam
    >
    >
    > --
    > wjoc1
    > ------------------------------------------------------------------------
    > wjoc1's Profile:
    > http://www.excelforum.com/member.php...o&userid=15281
    > View this thread: http://www.excelforum.com/showthread...hreadid=386138
    >




+ 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