Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Hyperlink text from linked workbook

I have a seperat workbook for each of my clients with the clientno as the
filename i.e. 1001.xlsm, 1002.xlsm etc. All these files are in lets say
c:/docs. First sheet in each clientworkbook is "Factsheet". In each factsheet
A1 states the clientname.

In the same directory I have my mastersheet.
In the first column I have the client numbers.
In the second column I want to have the hyperlinkformulas that, based on the
value in 1. column, makes the link to the relevant clientworkbook AND with
the clientname picked up from the linked workbook Factsheet!A1 as the linktext

I have two formulas that each does half of the job:
=HYPERLINK("C:\Docs\"&$a2&".xlsm";a2)
In this case the hyperlink works and opens the relevant file, but the
hyperlinktest is not the client name from the Factsheet

=HYPERLINK("C:\Docs\"&$a2&".xlsm";'C:\Docs\[1001.xlsm]Factsheet'!$a$1)

In this formula I get the clientname from the 1001.xlsm's factsheets cell
A1, but the hyperlink does not work AND the filename in the formula is not a
reference to the clientnumber in the first column.

Can anybody please help me with a formula that does both the tricks?
Thank you very much in advance.


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 434
Default Hyperlink text from linked workbook

hi, Albert !

I guess your best bet is to use vba:

- in '_change' event for the cells where you put the client number (column 1 ?)
- to read from closed workbooks and write the content (i.e.) in column 2 ?
- after that, you could use column 2 as the hyperlink-text function

one question: do you use to modify several cells in column 1 at one time ?

regards,
hector.

__ OP __
I have a seperat workbook for each of my clients with the clientno as the filename i.e. 1001.xlsm, 1002.xlsm etc.
All these files are in lets say c:/docs.
First sheet in each clientworkbook is "Factsheet".
In each factsheet A1 states the clientname.
In the same directory I have my mastersheet.
In the first column I have the client numbers.
In the second column I want to have the hyperlink formulas that
based on the value in 1. column makes the link to the relevant clientworkbook
AND with the clientname picked up from the linked workbook Factsheet!A1 as the linktext
I have two formulas that each does half of the job:
=HYPERLINK("C:\Docs\"&$a2&".xlsm";a2)
In this case the hyperlink works and opens the relevant file
but the hyperlinktest is not the client name from the Factsheet
=HYPERLINK("C:\Docs\"&$a2&".xlsm";'C:\Docs\[1001.xlsm]Factsheet'!$a$1)
In this formula I get the clientname from the 1001.xlsm's factsheets cell A1, but the hyperlink does not work
AND the filename in the formula is not a reference to the clientnumber in the first column.
Can anybody please help me with a formula that does both the tricks?



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
pulling color from cell of workbook to another linked workbook Sunshine Excel Discussion (Misc queries) 5 September 28th 07 12:42 PM
Can an Excel hyperlink be linked to an outlook file? Michele Excel Worksheet Functions 0 June 28th 06 02:20 PM
Can a linked hyperlink be updated Tgivin Excel Worksheet Functions 0 April 12th 06 08:50 PM
Intra-workbook hyperlink: macro/function to return to hyperlink ce marika1981 Excel Discussion (Misc queries) 3 May 6th 05 05:47 AM
Linked cell location of hyperlink Jerry Excel Worksheet Functions 1 December 20th 04 05:01 PM


All times are GMT +1. The time now is 04:47 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"