Hyperlink Help

R

retepallen

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\PPM\" '&
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
 
T

Tara H

Hi Pete,

This might help:

Sub Hyperlink()
ActiveWorkbook.FollowHyperlink
Address:="C:\myrouteaddressgoeshere\Programming\PPM\" &
ActiveSheet.Range("C2").Text & ".xls"
End Sub

Kind Regards,
Tara
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top