Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Hyperlink Help
Hi,
I'm trying to create a hyperlink to open another workbook and so far i have got this code: Sub Hyperlink() ActiveWorkbook.FollowHyperlink Address:="C:\myrouteaddressgoeshere\Programming\PP M\" '& ActiveWorkbook.Cells("C2").Text & ".xls" End Sub When i put the direct link as one text file, then it opens fine. But i want it to be able to open different files based on what is in Cell C2. Any help would be appreciated. Pete |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Hyperlink Help
Hi Pete,
This might help: Sub Hyperlink() ActiveWorkbook.FollowHyperlink Address:="C:\myrouteaddressgoeshere\Programming\PP M\" & ActiveSheet.Range("C2").Text & ".xls" End Sub Kind Regards, Tara "retepallen" wrote: Hi, I'm trying to create a hyperlink to open another workbook and so far i have got this code: Sub Hyperlink() ActiveWorkbook.FollowHyperlink Address:="C:\myrouteaddressgoeshere\Programming\PP M\" '& ActiveWorkbook.Cells("C2").Text & ".xls" End Sub When i put the direct link as one text file, then it opens fine. But i want it to be able to open different files based on what is in Cell C2. Any help would be appreciated. Pete |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Can't make hyperlink function work for hyperlink to website | Excel Worksheet Functions | |||
Moving rows with Hyperlink doesn't move hyperlink address | Excel Discussion (Misc queries) | |||
Intra-workbook hyperlink: macro/function to return to hyperlink ce | Excel Discussion (Misc queries) | |||
Macro to Copy Hyperlink to another file as a HYPERLINK, not text... | Excel Programming | |||
reading html when hyperlink address not hyperlink text diplayed | Excel Programming |