Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Linking Embedded Sheets

Hi,
I need to embed several worksheets into a word document. My problem is
that the sheets need to be linked to each other. Can anyone point me
in the right direction. I've done my fair share of vba in excel and
have done a lot of expert level vba programming in other office apps so
if this requires vb that would be great too.
Thanks for your time and ideas.
Pachydermitis

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default Linking Embedded Sheets

The easiest solution is to Link the files rather than Embed them, then you
can maintain their formulae to eachother.
Once embedded they lose the notion of a "file" and exist as a separate
entity.

In theory you could use Excel/VBA code to return the document they are in,
with:
Dim Cont as Object
Set Cont=ThisWorkbook.Container
but I can never get this to work from Excel in Word, although word in Excel
functions as expected.

Also the Word/VBA help is not much better.
<From Help
Container Property Example
This example displays the name of the container application for the first
shape in the active document. For the example to work, this shape must be an
OLE object.
Msgbox ActiveDocument.Shapes(1).OLEFormat.Object.Containe r.Name
</From Help
This always fails also.

NickHK

"Pachydermitis" wrote in message
oups.com...
Hi,
I need to embed several worksheets into a word document. My problem is
that the sheets need to be linked to each other. Can anyone point me
in the right direction. I've done my fair share of vba in excel and
have done a lot of expert level vba programming in other office apps so
if this requires vb that would be great too.
Thanks for your time and ideas.
Pachydermitis



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Linking Embedded Sheets

Thanks for the suggestions. None of my attempts have been sucessful as
of yet. I am not sure I know what you mean by link rather than embed.
I have a word doc that is some 80 pages long that needs excel sheets in
the middle of it. These sheets need to be able to reference each
other. Linking them would be perfect if as long as I can open word and
change a cell, having it reflect elsewhere in anther sheet in the
document. Is there some way to embed linked sheets or something?
Thank you once again

NickHK wrote:
The easiest solution is to Link the files rather than Embed them, then you
can maintain their formulae to eachother.
Once embedded they lose the notion of a "file" and exist as a separate
entity.

In theory you could use Excel/VBA code to return the document they are in,
with:
Dim Cont as Object
Set Cont=ThisWorkbook.Container
but I can never get this to work from Excel in Word, although word in Excel
functions as expected.

Also the Word/VBA help is not much better.
<From Help
Container Property Example
This example displays the name of the container application for the first
shape in the active document. For the example to work, this shape must be an
OLE object.
Msgbox ActiveDocument.Shapes(1).OLEFormat.Object.Containe r.Name
</From Help
This always fails also.

NickHK

"Pachydermitis" wrote in message
oups.com...
Hi,
I need to embed several worksheets into a word document. My problem is
that the sheets need to be linked to each other. Can anyone point me
in the right direction. I've done my fair share of vba in excel and
have done a lot of expert level vba programming in other office apps so
if this requires vb that would be great too.
Thanks for your time and ideas.
Pachydermitis


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Linking Embedded Sheets

OK, I replied too quickly, I found what you were talking about
regarding linking the sheets. This may work for me, I will play with it
for a while. Thank you for your help

Pachydermitis wrote:
Thanks for the suggestions. None of my attempts have been sucessful as
of yet. I am not sure I know what you mean by link rather than embed.
I have a word doc that is some 80 pages long that needs excel sheets in
the middle of it. These sheets need to be able to reference each
other. Linking them would be perfect if as long as I can open word and
change a cell, having it reflect elsewhere in anther sheet in the
document. Is there some way to embed linked sheets or something?
Thank you once again

NickHK wrote:
The easiest solution is to Link the files rather than Embed them, then you
can maintain their formulae to eachother.
Once embedded they lose the notion of a "file" and exist as a separate
entity.

In theory you could use Excel/VBA code to return the document they are in,
with:
Dim Cont as Object
Set Cont=ThisWorkbook.Container
but I can never get this to work from Excel in Word, although word in Excel
functions as expected.

Also the Word/VBA help is not much better.
<From Help
Container Property Example
This example displays the name of the container application for the first
shape in the active document. For the example to work, this shape must be an
OLE object.
Msgbox ActiveDocument.Shapes(1).OLEFormat.Object.Containe r.Name
</From Help
This always fails also.

NickHK

"Pachydermitis" wrote in message
oups.com...
Hi,
I need to embed several worksheets into a word document. My problem is
that the sheets need to be linked to each other. Can anyone point me
in the right direction. I've done my fair share of vba in excel and
have done a lot of expert level vba programming in other office apps so
if this requires vb that would be great too.
Thanks for your time and ideas.
Pachydermitis


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
Embedded Excel sheets over 2 pages MultiM Excel Worksheet Functions 2 March 11th 08 07:55 AM
Linking to Embedded object CB Excel Discussion (Misc queries) 0 May 1st 07 07:36 PM
LINKING CELL VALUES IN A EXCEL SHEET TO EMBEDDED WORD DOCUMENT Prasad Gopinath Excel Discussion (Misc queries) 0 February 13th 07 08:34 PM
Print embedded charts from several sheets Steve Charts and Charting in Excel 1 October 4th 06 03:17 AM
Linking Embedded Document Fields mae1778 Excel Discussion (Misc queries) 0 August 19th 05 04:59 PM


All times are GMT +1. The time now is 06:58 PM.

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

About Us

"It's about Microsoft Excel"