LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Hyperlinking cells and macros

Morning all,

I have been working on this for a few days and I am stumped..

I have a worksheet and I am trying (somewhat unsucessfully thus far) to have
cells hyperlink in the same column that have 2 different values I do have
the macro that will hyperlink the individual cells as well as hyperlink the
whole column but there are rows that seperate the circuits so I do not want
ALL the cells hyperlinked..

I have also tried to create a new column and have them alternate values but
it seems when I delete information from the cells that it does not pertain
the hyperlink (though not the text) is removed from the whole column (also
not what I want)


this is what I have so far.

these are for the indivdual cells


Sub Macro14()
'
' Macro14 Macro
' Macro recorded 1/30/2008 by edingman
'
' Keyboard Shortcut: Ctrl+o
'
ActiveCell.Offset(0, 0).Range("A1").Select
ActiveSheet.Hyperlinks.Add Anchor:=Selection, Address:= _
"\\Nss1\chevrones\30553-Crude-2\CADFILES\2CU.pdf", TextToDisplay:= _
"NO. 2 CRUDE"
End Sub


Sub Macro15()
'
' Macro15 Macro
' Macro recorded 1/30/2008 by edingman
'
' Keyboard Shortcut: Ctrl+e
'
ActiveCell.Offset(0, 0).Range("A1").Select
ActiveSheet.Hyperlinks.Add Anchor:=Selection, Address:= _
"\\Nss1\chevrones\30553-Crude-2\CADFILES\2RS.pdf", TextToDisplay:= _
"#2 RESID STRIPPER"
End Sub


These are for the whole column


Sub HYPERLINK()

Range("H3:H300").Select
ActiveSheet.Hyperlinks.Add Anchor:=Selection, Address:= _
"\\Nss1\chevrones\30553-Crude-2\CADFILES\2CU.pdf",
TextToDisplay:= _
"NO 2 CRUDE"



End Sub





Sub HYPERLINK2()

Range("G3:G300").Select
ActiveSheet.Hyperlinks.Add Anchor:=Selection, Address:= _
"\\Nss1\chevrones\30553-Crude-2\CADFILES\2RS.pdf",
TextToDisplay:= _
"#2 RESID STRIPPER"



End Sub


I an Brand new to macros and VBE in Excel and need help

what I am looking for is this: Is there a way to automaticaly hyperlink
cells as soon as text is added? Is there a way to link to 2 different files
within the same column? if not is there a way to keep the hyperlink behind
the text when I delete the non pertnant text from the other column?

Thank you for any help you can offer in this matter..


 
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 Cells BryanC Excel Discussion (Misc queries) 3 July 29th 08 06:08 PM
Hyperlinking cells Paul Excel Discussion (Misc queries) 0 September 6th 07 11:44 AM
Help! Hyperlinking? IoHeFy Excel Discussion (Misc queries) 2 April 16th 07 02:10 PM
How to use macros to copy a range of cells which can exclude some cells which I didn't want to be copied? excelnovice Excel Worksheet Functions 2 September 25th 05 12:38 AM
Hyperlinking Niccalo Excel Worksheet Functions 2 May 31st 05 12:07 PM


All times are GMT +1. The time now is 01:55 AM.

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"