Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 98
Default Links in XL worksheet

This question was posted in the week and I could not get an answer, I'm
giving a new try to the weekend people that are more relax and comfortable
reading it.
My worsheet have a lot of links that when I click on each one , goes to a
webside (links are copy-paste from the toolbar to the excel worsheet).
FINE.
It ocurred to me that I could do data validation with those links and I did.
But when I drop down and click on any link not results.
worksheet name : websites
links go from : A1 to A300
DV on: B1
Can this be done ? ( acess the website links from DV )
THANKS.
--
Socrates said: I only know, I don''''''''t know nothing.
I say : I don''''''''t even know, I don''''''''t
know nothing.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 141
Default Links in XL worksheet

Right click on the sheet's name and select "View Code" and paste this
code in:


Private Sub Worksheet_Change(ByVal Target As Range)
'Range is set to A1, change range to the cell you want to hyperlink
i = Range("A1").Value
ActiveSheet.Hyperlinks.Add Anchor:=Range("A1"), Address:= _
i, TextToDisplay:=i
End Sub

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 98
Default Links in XL worksheet

Thanks but nothing happened.
Maybe indirect formula insteda of macro ( read about it while back )
--
Socrates said: I only know, I don''''''''t know nothing.
I say : I don''''''''t even know, I don''''''''t
know nothing.


"GTVT06" wrote:

Right click on the sheet's name and select "View Code" and paste this
code in:


Private Sub Worksheet_Change(ByVal Target As Range)
'Range is set to A1, change range to the cell you want to hyperlink
i = Range("A1").Value
ActiveSheet.Hyperlinks.Add Anchor:=Range("A1"), Address:= _
i, TextToDisplay:=i
End Sub


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 98
Default Links in XL worksheet

Yes it works now. 2 things happened :
first I had to change the ranges to B1 instead of A1
and second I had the hyperlinks edited with names instead of htpp
in order for me to alphabetically sort them
This code works with the pasted links but not after they are edited.
wonder why?
--
Socrates said: I only know, I don''''''''t know nothing.
I say : I don''''''''t even know, I don''''''''t
know nothing.


"Learning Excel" wrote:

Thanks but nothing happened.
Maybe indirect formula insteda of macro ( read about it while back )
--
Socrates said: I only know, I don''''''''t know nothing.
I say : I don''''''''t even know, I don''''''''t
know nothing.


"GTVT06" wrote:

Right click on the sheet's name and select "View Code" and paste this
code in:


Private Sub Worksheet_Change(ByVal Target As Range)
'Range is set to A1, change range to the cell you want to hyperlink
i = Range("A1").Value
ActiveSheet.Hyperlinks.Add Anchor:=Range("A1"), Address:= _
i, TextToDisplay:=i
End Sub


  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 141
Default Links in XL worksheet

On May 31, 6:21*pm, Learning Excel
wrote:
Yes it works now. 2 things happened :
first I had to change the ranges to B1 instead of A1
and second I had the hyperlinks edited with names instead of htpp
in order for me to alphabetically sort them
This code works with the pasted links but not after they are edited.
wonder why?
--
Socrates said: I only know, I don''''''''t know nothing.
I say : I don''''''''t even know, I don''''''''t
know nothing.



"Learning Excel" wrote:
Thanks but nothing happened.
Maybe indirect formula insteda of macro ( read about it while back )
--
Socrates said: I only know, I don''''''''t know nothing.
I say : I don''''''''t even know, I don''''''''t
know nothing.


"GTVT06" wrote:


Right click on the sheet's name and select "View Code" and paste this
code in:


Private Sub Worksheet_Change(ByVal Target As Range)
'Range is set to A1, change range to the cell you want to hyperlink
i = Range("A1").Value
ActiveSheet.Hyperlinks.Add Anchor:=Range("A1"), Address:= _
* * * * i, TextToDisplay:=i
End Sub- Hide quoted text -


- Show quoted text -


It's creating a website hyperlinkbased off of the value that is in B1,
I can see if I can edit it to your needs. You can either create a
table hidden to the side so I can Vlookup the website based off of the
name in B1.
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
Edit Links: Changing links on a protected worksheet Halibut68 Excel Discussion (Misc queries) 0 April 28th 06 11:03 AM
Updating links from one worksheet to another worksheet Eileen Excel Worksheet Functions 1 April 19th 06 01:07 PM
worksheet links BAC Excel Worksheet Functions 0 March 22nd 06 02:54 AM
Worksheet links Ken Rock Links and Linking in Excel 4 June 14th 05 11:06 PM
Worksheet links Debbie Excel Worksheet Functions 0 January 26th 05 09:01 PM


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