Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default 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


--
wjoc1
------------------------------------------------------------------------
wjoc1's Profile: http://www.excelforum.com/member.php...o&userid=15281
View this thread: http://www.excelforum.com/showthread...hreadid=386138

  #2   Report Post  
Posted to microsoft.public.excel.programming
moi moi is offline
external usenet poster
 
Posts: 27
Default 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" schreef in
bericht ...

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
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I convert an Excel document to a Word Document has3801 Setting up and Configuration of Excel 1 June 11th 08 11:16 PM
change excel document into word document mrsb Excel Discussion (Misc queries) 6 August 28th 07 12:58 PM
convert excel document to word document (not a picture) frendabrenda1 Excel Discussion (Misc queries) 2 October 6th 06 03:55 PM
How do I convert a word document into a Excel document gwiltz2 Excel Discussion (Misc queries) 1 October 22nd 05 07:04 PM
How to change a excel document into a word document? wannaknow Excel Discussion (Misc queries) 1 July 27th 05 09:37 PM


All times are GMT +1. The time now is 06:31 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"