Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 58
Default list box that has text that has hyperlink qualities

I have several lsit boxes that move from one to another.The original
contained data that was hyperlinked (to external sources). When they are in
the list box the hyperlinks diappear. I want to keep this feature. Any ideas?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9,101
Default list box that has text that has hyperlink qualities

Try putting the subaddress into the listbox. The display name of the
hyperlink (what you see on the spreadsheet) and the URL address are tow
different properties of a cell.

Sub test()
Set a = Range("C7")
MsgBox a.Hyperlinks.Item(1).SubAddress
End Sub


"gbpg" wrote:

I have several lsit boxes that move from one to another.The original
contained data that was hyperlinked (to external sources). When they are in
the list box the hyperlinks diappear. I want to keep this feature. Any ideas?

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 58
Default list box that has text that has hyperlink qualities

The form that these list boxes on are not on a spreadsheet. I wanted this
workbook to look like an application.

"Joel" wrote:

Try putting the subaddress into the listbox. The display name of the
hyperlink (what you see on the spreadsheet) and the URL address are tow
different properties of a cell.

Sub test()
Set a = Range("C7")
MsgBox a.Hyperlinks.Item(1).SubAddress
End Sub


"gbpg" wrote:

I have several lsit boxes that move from one to another.The original
contained data that was hyperlinked (to external sources). When they are in
the list box the hyperlinks diappear. I want to keep this feature. Any ideas?

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9,101
Default list box that has text that has hyperlink qualities

I think you just want the text in the Listbox to be colored and underlined.
the hyperlink on the worksheet are blue and underlined that why they look the
way they do. When the item in the listlox is selected you can perform the
hyperlink actions in VBA code.

You can color the items in a Listbox with the following statement
UserForm1.ListBox1.ForeColor = vbBlue

I have excel 2003 and was not able to underline the text in the Listbox.
Not sure if it is possible.

"gbpg" wrote:

The form that these list boxes on are not on a spreadsheet. I wanted this
workbook to look like an application.

"Joel" wrote:

Try putting the subaddress into the listbox. The display name of the
hyperlink (what you see on the spreadsheet) and the URL address are tow
different properties of a cell.

Sub test()
Set a = Range("C7")
MsgBox a.Hyperlinks.Item(1).SubAddress
End Sub


"gbpg" wrote:

I have several lsit boxes that move from one to another.The original
contained data that was hyperlinked (to external sources). When they are in
the list box the hyperlinks diappear. I want to keep this feature. Any ideas?

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
list and hyperlink Tanya Excel Discussion (Misc queries) 5 May 18th 08 11:51 AM
how to add Hyperlink in list box Raj Excel Programming 0 July 23rd 07 01:04 PM
how to add hyperlink in list box Raj Excel Programming 0 July 23rd 07 01:02 PM
Macro to Copy Hyperlink to another file as a HYPERLINK, not text... dollardoc Excel Programming 1 April 7th 05 12:47 AM
reading html when hyperlink address not hyperlink text diplayed Kevin Excel Programming 1 December 4th 03 10:13 PM


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