Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 347
Default Message Boxes and Hyperlinks

I have set up a spreadsheet that has a few hyperlinks on it to web pages.
These pages require passwords and unser names to view them. I want to display
a message box each time a hyperlink is clicked on that will tell the user
what password and username they should be using for that particular site....
I just don't seem to be having any luck - can anybody help?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Message Boxes and Hyperlinks

how are you trying to get this to happen?

what version of excel?

--
Regards,
Tom Ogilvy

"George" wrote in message
...
I have set up a spreadsheet that has a few hyperlinks on it to web pages.
These pages require passwords and unser names to view them. I want to

display
a message box each time a hyperlink is clicked on that will tell the user
what password and username they should be using for that particular

site....
I just don't seem to be having any luck - can anybody help?



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Message Boxes and Hyperlinks

I've done something similar.

First, draw a rectangle around the cell containing the hyperlink (let's
assume the link is in cell A1).

N.B. You need to set the Fill Color to No Fill and the Line Color to No Line
otherwise you won't see the link underneath.

Paste this into the VB editor:

Public Sub Link1()
MsgBox "Username = <whatever Password = <whatever"
Cells(1, 1).Select
Selection.Hyperlinks(1).Follow NewWindow:=True, AddHistory:=True
End Sub

Assign the Link1 macro to the rectangle and it will display the message
whenever cell 1,1 (A1) is clicked and follow the hyperlink.

Hope this helps.

Rob

"George" wrote:

I have set up a spreadsheet that has a few hyperlinks on it to web pages.
These pages require passwords and unser names to view them. I want to display
a message box each time a hyperlink is clicked on that will tell the user
what password and username they should be using for that particular site....
I just don't seem to be having any luck - can anybody help?

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 347
Default Message Boxes and Hyperlinks

WooHoo!!! It works! Thank-you so much for your help

"Rob Docherty" wrote:

I've done something similar.

First, draw a rectangle around the cell containing the hyperlink (let's
assume the link is in cell A1).

N.B. You need to set the Fill Color to No Fill and the Line Color to No Line
otherwise you won't see the link underneath.

Paste this into the VB editor:

Public Sub Link1()
MsgBox "Username = <whatever Password = <whatever"
Cells(1, 1).Select
Selection.Hyperlinks(1).Follow NewWindow:=True, AddHistory:=True
End Sub

Assign the Link1 macro to the rectangle and it will display the message
whenever cell 1,1 (A1) is clicked and follow the hyperlink.

Hope this helps.

Rob

"George" wrote:

I have set up a spreadsheet that has a few hyperlinks on it to web pages.
These pages require passwords and unser names to view them. I want to display
a message box each time a hyperlink is clicked on that will tell the user
what password and username they should be using for that particular site....
I just don't seem to be having any luck - can anybody help?

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
Using Hyperlinks in Text boxes Roseanne Excel Discussion (Misc queries) 1 December 30th 08 02:25 PM
Hyperlinks in text boxes Cheryl Excel Discussion (Misc queries) 1 June 14th 07 01:10 AM
validation list or combo boxes with hyperlinks georana Excel Discussion (Misc queries) 2 April 17th 06 01:32 PM
Message boxes JaB Excel Discussion (Misc queries) 1 November 10th 05 12:02 PM
Message Boxes. mika.[_2_] Excel Programming 1 November 19th 03 12:17 AM


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