#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 661
Default Hyperlinking cells

Hi,

I have this macro so far (which works)...

nrow = 6
ncol = 1

With Worksheets("Sheet1")

For rwindex = nrow To 22

fname = CStr(Cells(rwindex, ncol).Value)

ActiveSheet.Hyperlinks.Add Anchor:=Cells(rwindex, ncol), Address:= _
"Documents\" + fname + ".pdf"

nrow = nrow + 1

Next rwindex

End With

End Sub


I have a list of files starting in column 1, row 6 and this macro will
search the contents of this cell and input a hyperlink with the cell contents
(with the folder structure implemented) So my hyperlink will show this -
Documents/blababal.pdf Which is what i want, however, I cannot get this to
then start looking through other cells in the worksheet and returning the
value shown above. As i have file lists all over the worksheet. Also i will
need it to not return anything if the cell is blank or has no filename. I
understand this could be difficult (i maybe wrong, but i am new to VBA)

Any help is much appreciated
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
Hyperlinking xbabytam Excel Discussion (Misc queries) 1 August 21st 07 03:12 PM
Help! Hyperlinking? IoHeFy Excel Discussion (Misc queries) 2 April 16th 07 02:10 PM
Name a chart for hyperlinking Aurora Charts and Charting in Excel 2 December 5th 05 06:19 PM
Hyperlinking Niccalo Excel Worksheet Functions 2 May 31st 05 12:07 PM
Hyperlinking when it shouldn't... B.C.Lioness Excel Worksheet Functions 0 May 17th 05 07:15 PM


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

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

About Us

"It's about Microsoft Excel"