Reply
 
Thread Tools Display Modes
  #1   Report Post  
Chrath
 
Posts: n/a
Default hyperlink to an file shown as an object

I want to link part of a Word document to sheet of an Excel file, that I have
inserted into the Word doc as an object. How can I create that hyperlink?
In other words, immagine you start to write an article and you stop at the
first line, by clicking on that line, you want a section of a sheet to open
with the remaining of the information you want to have. It seems there no way
to create a hyperlink between a text section of a Word Doc and an Excel sheet
located inside the Word document.
Thanks
  #2   Report Post  
Cindy M -WordMVP-
 
Posts: n/a
Default

Hi ?B?Q2hyYXRo?=,

I want to link part of a Word document to sheet of an Excel file, that I have
inserted into the Word doc as an object. How can I create that hyperlink?
In other words, immagine you start to write an article and you stop at the
first line, by clicking on that line, you want a section of a sheet to open
with the remaining of the information you want to have. It seems there no way
to create a hyperlink between a text section of a Word Doc and an Excel sheet
located inside the Word document.

That is correct, there is not. A hyperlink assumes a separate file, saved in a
file location. The only possibility that occurs to me would be to use a
MacroButton field that activates a macro. And the macro would activate the Excel
object and navigate to the specififed location. For example

Sub HyperlinkToExcelCell()
Dim oleF As Word.OLEFormat
Dim o As Object

Set oleF = ActiveDocument.InlineShapes(1).OLEFormat
oleF.Activate
Set o = oleF.Object
o.Application.Range("Target").Select
End Sub

Where "Target" is a range in the Excel sheet that you've selected, then typed
Target in the range name box at the left of the formular bar. The above assumes
the Excel sheet is formatted in line with the text, and is the first graphical
object in the document.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :-)

Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Import of text file olav Microsoft Word Help 1 December 6th 04 01:14 PM
read and parse a flat file into word fields Hoa Johnson Microsoft Word Help 1 December 3rd 04 01:51 PM
File missing when loading by association Bad Horsey Microsoft Word Help 1 November 30th 04 06:33 PM
File created from template blown in size Charles Microsoft Word Help 2 November 29th 04 02:47 PM
How do I save a word file as a .gif or .jpeg file? eileen Walker Microsoft Word Help 1 November 25th 04 12:16 AM


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

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"