#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 40
Default HYPERLINK

Can I create a HYPERLINK from a drop-down list?

Thanks
Bobby
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,058
Default HYPERLINK

Great question!

Say we have in C1 thru C6:

cnn
abc
cbs
fox
nbc
bbc

and a data validation pull-down in B1. In A1 enter:
=HYPERLINK("http://www." & B1 & ".com")

So basically the hyperlink is defined by what you pull down.
--
Gary''s Student - gsnu200800


"bgkgmg" wrote:

Can I create a HYPERLINK from a drop-down list?

Thanks
Bobby

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,355
Default HYPERLINK

Is the selection already a URL, or do you have a URL to match the value in
the drop down list?


"bgkgmg" wrote:

Can I create a HYPERLINK from a drop-down list?

Thanks
Bobby

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,355
Default HYPERLINK

Here's some sample code if the drop down selection includes the URL. Right
click on the worksheet with the drop down and View Source. Paste this in the
window that's displayed.

Private Sub Worksheet_Change(ByVal Target As Range)
Dim myRange As Range
Set myRange = Me.Range("D2") 'Change as needed for cell with dropdown
If Not Intersect(Target, myRange) Is Nothing Then
myRange.Hyperlinks.Add Anchor:=Target, Address:=Target.text,
TextToDisplay:=Target.text
End If
End Sub


--
HTH,
Barb Reinhardt



"bgkgmg" wrote:

Can I create a HYPERLINK from a drop-down list?

Thanks
Bobby

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 43
Default HYPERLINK

Hi Gary's Student, Great answer too, however for some reason after I do all
the steps then when clicking in the selected hyperlink ( either A1 or B1) it
does not
go to the website or anything else. I've been looking for this topic all
over, please
give it a try and let me know what I'm doing wrong. Thanks, Apreciate it.

"Gary''s Student" wrote:

Great question!

Say we have in C1 thru C6:

cnn
abc
cbs
fox
nbc
bbc

and a data validation pull-down in B1. In A1 enter:
=HYPERLINK("http://www." & B1 & ".com")

So basically the hyperlink is defined by what you pull down.
--
Gary''s Student - gsnu200800


"bgkgmg" wrote:

Can I create a HYPERLINK from a drop-down list?

Thanks
Bobby



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,058
Default HYPERLINK

Let's take one step back

Does =HYPERLINK() work for you??

put:

=HYPERLINK("http://en.wikipedia.org/wiki/Main_Page")

in an un-used cell. Is it clickable??
--
Gary''s Student - gsnu200800


"computexcel" wrote:

Hi Gary's Student, Great answer too, however for some reason after I do all
the steps then when clicking in the selected hyperlink ( either A1 or B1) it
does not
go to the website or anything else. I've been looking for this topic all
over, please
give it a try and let me know what I'm doing wrong. Thanks, Apreciate it.

"Gary''s Student" wrote:

Great question!

Say we have in C1 thru C6:

cnn
abc
cbs
fox
nbc
bbc

and a data validation pull-down in B1. In A1 enter:
=HYPERLINK("http://www." & B1 & ".com")

So basically the hyperlink is defined by what you pull down.
--
Gary''s Student - gsnu200800


"bgkgmg" wrote:

Can I create a HYPERLINK from a drop-down list?

Thanks
Bobby

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 43
Default HYPERLINK

Yes, it took me to Wikipedia right away.

"Gary''s Student" wrote:

Let's take one step back

Does =HYPERLINK() work for you??

put:

=HYPERLINK("http://en.wikipedia.org/wiki/Main_Page")

in an un-used cell. Is it clickable??
--
Gary''s Student - gsnu200800


"computexcel" wrote:

Hi Gary's Student, Great answer too, however for some reason after I do all
the steps then when clicking in the selected hyperlink ( either A1 or B1) it
does not
go to the website or anything else. I've been looking for this topic all
over, please
give it a try and let me know what I'm doing wrong. Thanks, Apreciate it.

"Gary''s Student" wrote:

Great question!

Say we have in C1 thru C6:

cnn
abc
cbs
fox
nbc
bbc

and a data validation pull-down in B1. In A1 enter:
=HYPERLINK("http://www." & B1 & ".com")

So basically the hyperlink is defined by what you pull down.
--
Gary''s Student - gsnu200800


"bgkgmg" wrote:

Can I create a HYPERLINK from a drop-down list?

Thanks
Bobby

  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 43
Default HYPERLINK

You sure want to know what it was. After keep trying all websites in the
Dropdown list, some of them worked, some did not. I realized that when I
named them some had 'spaces' ( microsoft group, school menu,etc.) between
words others not(wikipedia, nbcnews,etc.) Guess which ones worked.
GOOD GUESS! No spaces please. Thanks for the follow up Gary's Student.
Really Apreciate it.

"computexcel" wrote:

Yes, it took me to Wikipedia right away.

"Gary''s Student" wrote:

Let's take one step back

Does =HYPERLINK() work for you??

put:

=HYPERLINK("http://en.wikipedia.org/wiki/Main_Page")

in an un-used cell. Is it clickable??
--
Gary''s Student - gsnu200800


"computexcel" wrote:

Hi Gary's Student, Great answer too, however for some reason after I do all
the steps then when clicking in the selected hyperlink ( either A1 or B1) it
does not
go to the website or anything else. I've been looking for this topic all
over, please
give it a try and let me know what I'm doing wrong. Thanks, Apreciate it.

"Gary''s Student" wrote:

Great question!

Say we have in C1 thru C6:

cnn
abc
cbs
fox
nbc
bbc

and a data validation pull-down in B1. In A1 enter:
=HYPERLINK("http://www." & B1 & ".com")

So basically the hyperlink is defined by what you pull down.
--
Gary''s Student - gsnu200800


"bgkgmg" wrote:

Can I create a HYPERLINK from a drop-down list?

Thanks
Bobby

  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 43
Default HYPERLINK

Back to zero.
Some websites when clicking A1 after doing dropdown tells me ''unable to
open can not locate the internet service/proxy provider.
When clicking the same website in the master list ( source of the dropdown
list), then it opens the website. What is wrong now.
Thanks.
"computexcel" wrote:

You sure want to know what it was. After keep trying all websites in the
Dropdown list, some of them worked, some did not. I realized that when I
named them some had 'spaces' ( microsoft group, school menu,etc.) between
words others not(wikipedia, nbcnews,etc.) Guess which ones worked.
GOOD GUESS! No spaces please. Thanks for the follow up Gary's Student.
Really Apreciate it.

"computexcel" wrote:

Yes, it took me to Wikipedia right away.

"Gary''s Student" wrote:

Let's take one step back

Does =HYPERLINK() work for you??

put:

=HYPERLINK("http://en.wikipedia.org/wiki/Main_Page")

in an un-used cell. Is it clickable??
--
Gary''s Student - gsnu200800


"computexcel" wrote:

Hi Gary's Student, Great answer too, however for some reason after I do all
the steps then when clicking in the selected hyperlink ( either A1 or B1) it
does not
go to the website or anything else. I've been looking for this topic all
over, please
give it a try and let me know what I'm doing wrong. Thanks, Apreciate it.

"Gary''s Student" wrote:

Great question!

Say we have in C1 thru C6:

cnn
abc
cbs
fox
nbc
bbc

and a data validation pull-down in B1. In A1 enter:
=HYPERLINK("http://www." & B1 & ".com")

So basically the hyperlink is defined by what you pull down.
--
Gary''s Student - gsnu200800


"bgkgmg" wrote:

Can I create a HYPERLINK from a drop-down list?

Thanks
Bobby

  #10   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 40
Default HYPERLINK

The links are within the same workbook. I have tried to enter values within
your parenthesis but not having much luck. Is there a generic formula to use
for hyperlinks within the workbook?

Thanks
Bobby

"Gary''s Student" wrote:

Great question!

Say we have in C1 thru C6:

cnn
abc
cbs
fox
nbc
bbc

and a data validation pull-down in B1. In A1 enter:
=HYPERLINK("http://www." & B1 & ".com")

So basically the hyperlink is defined by what you pull down.
--
Gary''s Student - gsnu200800


"bgkgmg" wrote:

Can I create a HYPERLINK from a drop-down list?

Thanks
Bobby



  #11   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 40
Default HYPERLINK

Im not sure what URL is but if it means the same workbook then yes. I have
pasted in your response and I probably did not change somthing where I should
have. Could you post again and perhaps underline what I am to add.

Thanks
Bobby

"Barb Reinhardt" wrote:

Is the selection already a URL, or do you have a URL to match the value in
the drop down list?


"bgkgmg" wrote:

Can I create a HYPERLINK from a drop-down list?

Thanks
Bobby

  #12   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default HYPERLINK

Suppose you have a list of names in A1:A12 of Sheet2, and in A1 of
Sheet1 you have a drop-down to enable you to select from that list of
names. Put this formula in B1 of Sheet1:

=HYPERLINK("#Sheet2!A"&MATCH(A1,Sheet2!A1:A12,0)," Click to jump
there")

It will display "Click to jump there" in the cell and if you you click
on B1 the cursor will jump to the cell in Sheet2 which matches the
name you have chosen in A1 of Sheet1 - is this what you want?

Hope this helps.

Pete


On Aug 17, 11:03*pm, bgkgmg wrote:
Im not sure what URL is but if it means the same workbook then yes. *I have
pasted in your response and I probably did not change somthing where I should
have. *Could you post again and perhaps underline what I am to add.

Thanks
Bobby



"Barb Reinhardt" wrote:
Is the selection already a URL, or do you have a URL to match the value in
the drop down list?


"bgkgmg" wrote:


Can I create a HYPERLINK from a drop-down list?


Thanks
Bobby- Hide quoted text -


- Show quoted text -


  #13   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 40
Default HYPERLINK

Your example helped me understand how to right the formula that fits what I
wanted.
Thanks very much

"Pete_UK" wrote:

Suppose you have a list of names in A1:A12 of Sheet2, and in A1 of
Sheet1 you have a drop-down to enable you to select from that list of
names. Put this formula in B1 of Sheet1:

=HYPERLINK("#Sheet2!A"&MATCH(A1,Sheet2!A1:A12,0)," Click to jump
there")

It will display "Click to jump there" in the cell and if you you click
on B1 the cursor will jump to the cell in Sheet2 which matches the
name you have chosen in A1 of Sheet1 - is this what you want?

Hope this helps.

Pete


On Aug 17, 11:03 pm, bgkgmg wrote:
Im not sure what URL is but if it means the same workbook then yes. I have
pasted in your response and I probably did not change somthing where I should
have. Could you post again and perhaps underline what I am to add.

Thanks
Bobby



"Barb Reinhardt" wrote:
Is the selection already a URL, or do you have a URL to match the value in
the drop down list?


"bgkgmg" wrote:


Can I create a HYPERLINK from a drop-down list?


Thanks
Bobby- Hide quoted text -


- Show quoted text -



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
Can't make hyperlink function work for hyperlink to website Frank B Denman Excel Worksheet Functions 15 February 5th 07 11:01 PM
How do I create a hyperlink to a cell with the hyperlink function S. Bevins Excel Worksheet Functions 2 July 20th 06 08:06 PM
Moving rows with Hyperlink doesn't move hyperlink address Samad Excel Discussion (Misc queries) 15 June 22nd 06 12:03 PM
Hyperlink from one sheet to the hyperlink on another AO Excel Discussion (Misc queries) 2 July 5th 05 11:27 AM
Intra-workbook hyperlink: macro/function to return to hyperlink ce marika1981 Excel Discussion (Misc queries) 3 May 6th 05 05:47 AM


All times are GMT +1. The time now is 05:59 PM.

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"