Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
Default Non VB (simple VB) Hyperlink Data Validation List

Can't get this figured out.

Need to make a list of hyperlinks drop down that is populated from a
separate wsheet. The real catch is I need to use simple titles for long
hyperlinks (ie. google for http://www.google.com) simialr to a an html
dropdown menu.

I am very new to this so go easy on me, please.

Thanks in advance,

rt

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 27
Default Non VB (simple VB) Hyperlink Data Validation List

Once you create the list of long addresses, you can right click on each one,
select Edit Hyperlink, and then type in what you want to appear for that link
in the "Text to display" box.

"ric.todd" wrote:

Can't get this figured out.

Need to make a list of hyperlinks drop down that is populated from a
separate wsheet. The real catch is I need to use simple titles for long
hyperlinks (ie. google for http://www.google.com) simialr to a an html
dropdown menu.

I am very new to this so go easy on me, please.

Thanks in advance,

rt


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
Default Non VB (simple VB) Hyperlink Data Validation List


I tried that, and for some reason, the links do not populate in my
drop-down (or I should say they don't work.)

Perhaps I should clarify:

I have two sheets:

1)Sheet1 needs to have a drop down list with links that have short
alternate titles.
2)This list of links would be populated from my DropDown sheet where I
have created my list of links and titled the.
3)I change the title of my links via r-click.
4)I select the cells on Sheet1 from which I want the drop-list to
appear.
5)The list just gives me simple titles and not hyperlinks.

thanks!


On Nov 21, 12:55 pm, Randy L wrote:
Once you create the list of long addresses, you can right click on each one,
select Edit Hyperlink, and then type in what you want to appear for that link
in the "Text to display" box.



"ric.todd" wrote:
Can't get this figured out.


Need to make a list of hyperlinks drop down that is populated from a
separate wsheet. The real catch is I need to use simple titles for long
hyperlinks (ie. google forhttp://www.google.com) simialr to a an html
dropdown menu.


I am very new to this so go easy on me, please.


Thanks in advance,


rt- Hide quoted text -- Show quoted text -


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Non VB (simple VB) Hyperlink Data Validation List

I'd use data|validation to create the dropdown. (I used A1 for my sample.)

I'd put the friendly names in column A of Sheet2 and the actual URLs in column B
of sheet2. And give that range in column A a nice name (to be used with
data|validation).

http://contextures.com/xlDataVal01.html#Name
(from Debra Dalgleish's site)

Then I'd plop a button from the Forms toolbar near that cell with the data
validation.

I'd assign this macro to the button.

Option Explicit
Sub testme()

Dim myCell As Range
Dim myRng As Range
Dim res As Variant

Set myCell = ActiveSheet.Range("a1")

If IsEmpty(myCell.Value) Then
Beep
Exit Sub
End If

Set myRng = Worksheets("sheet2").Range("a:a")

res = Application.Match(myCell, myRng, 0)

If IsError(res) Then
MsgBox "Design error!"
Else
ThisWorkbook.FollowHyperlink myRng(res).Offset(0, 1)
End If

End Sub

If you're new to macros, you may want to read David McRitchie's intro at:
http://www.mvps.org/dmcritchie/excel/getstarted.htm



"ric.todd" wrote:

Can't get this figured out.

Need to make a list of hyperlinks drop down that is populated from a
separate wsheet. The real catch is I need to use simple titles for long
hyperlinks (ie. google for http://www.google.com) simialr to a an html
dropdown menu.

I am very new to this so go easy on me, please.

Thanks in advance,

rt


--

Dave Peterson
  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
Default Non VB (simple VB) Hyperlink Data Validation List

Sweet!!

Thanks.

rt


Dave Peterson wrote:
I'd use data|validation to create the dropdown. (I used A1 for my sample.)

I'd put the friendly names in column A of Sheet2 and the actual URLs in column B
of sheet2. And give that range in column A a nice name (to be used with
data|validation).

http://contextures.com/xlDataVal01.html#Name
(from Debra Dalgleish's site)

Then I'd plop a button from the Forms toolbar near that cell with the data
validation.

I'd assign this macro to the button.

Option Explicit
Sub testme()

Dim myCell As Range
Dim myRng As Range
Dim res As Variant

Set myCell = ActiveSheet.Range("a1")

If IsEmpty(myCell.Value) Then
Beep
Exit Sub
End If

Set myRng = Worksheets("sheet2").Range("a:a")

res = Application.Match(myCell, myRng, 0)

If IsError(res) Then
MsgBox "Design error!"
Else
ThisWorkbook.FollowHyperlink myRng(res).Offset(0, 1)
End If

End Sub

If you're new to macros, you may want to read David McRitchie's intro at:
http://www.mvps.org/dmcritchie/excel/getstarted.htm



"ric.todd" wrote:

Can't get this figured out.

Need to make a list of hyperlinks drop down that is populated from a
separate wsheet. The real catch is I need to use simple titles for long
hyperlinks (ie. google for http://www.google.com) simialr to a an html
dropdown menu.

I am very new to this so go easy on me, please.

Thanks in advance,

rt


--

Dave Peterson


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
data validation invalid in dynamic validation list ilia Excel Discussion (Misc queries) 0 November 7th 06 12:54 PM
data validation invalid in dynamic validation list ilia Excel Worksheet Functions 0 November 7th 06 12:54 PM
Adding a blank in Data Validation List? Pheasant Plucker® Excel Discussion (Misc queries) 10 March 20th 06 03:06 PM
named range, data validation: list non-selected items, and new added items KR Excel Discussion (Misc queries) 1 June 24th 05 05:21 AM
Using Validation List from Another Workbook with Dependent Data Mike R. Excel Worksheet Functions 5 January 8th 05 07:06 PM


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