Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default automatically assign a hyperlink to a cell


I have a database in which I am storing information and assigning a ID
number to each entry. From those entries, a report is generated and
saved to a designated directory on my server. I would like to somehow
automatically assign a hyperlink to that forms ID number in the
database so that anyone can simply click on the hyperlink and pull up
the form.

Basically I need to do a find last row command and place the hyperlink
in the ID number cell. The hyperlinks will always go to the same
directory, but the variable would obviously be the form ID number.

Is there a way to do this or even if I have to place a hyperlink in
each cell using a directory reference from another cell would work,
but I am having trouble with the variable working.

Thanks for any advice,
Brad


--
Brad J.
------------------------------------------------------------------------
Brad J.'s Profile: http://www.excelforum.com/member.php...o&userid=21713
View this thread: http://www.excelforum.com/showthread...hreadid=555180

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,124
Default automatically assign a hyperlink to a cell

Instead of a hyperlink why not just use a double click event in the sheet
module. Right click sheet tabview codeinsert this. This example uses a
typed name of a worksheet to goto to it.

Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As
Boolean)
Application.DisplayAlerts = False
Dim WantedSheet As String
WantedSheet = Trim(ActiveCell.Value)
If WantedSheet = "" Then Exit Sub
On Error Resume Next
If Sheets(ActiveCell.Value) Is Nothing Then
GetWorkbook ' calls another macro to do that
Else
Sheets(ActiveCell.Value).Select
ActiveSheet.Range("a4").Select
End If
Application.DisplayAlerts = True
End Sub
--
Don Guillett
SalesAid Software

"Brad J." wrote in
message ...

I have a database in which I am storing information and assigning a ID
number to each entry. From those entries, a report is generated and
saved to a designated directory on my server. I would like to somehow
automatically assign a hyperlink to that forms ID number in the
database so that anyone can simply click on the hyperlink and pull up
the form.

Basically I need to do a find last row command and place the hyperlink
in the ID number cell. The hyperlinks will always go to the same
directory, but the variable would obviously be the form ID number.

Is there a way to do this or even if I have to place a hyperlink in
each cell using a directory reference from another cell would work,
but I am having trouble with the variable working.

Thanks for any advice,
Brad


--
Brad J.
------------------------------------------------------------------------
Brad J.'s Profile:
http://www.excelforum.com/member.php...o&userid=21713
View this thread: http://www.excelforum.com/showthread...hreadid=555180



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
Create an hyperlink automatically in a cell João Carlos Excel Discussion (Misc queries) 2 August 1st 09 10:14 AM
Assign a macro to a hyperlink Daminc[_67_] Excel Programming 5 May 2nd 06 01:51 PM
Assign a macro to a hyperlink Daminc[_66_] Excel Programming 0 April 28th 06 03:04 PM
Convert Hyperlink to cell value automatically Convert Hyperlinks Excel Worksheet Functions 0 January 25th 06 09:53 PM
how to Assign Hyperlink to Button in Spreadsheet Warren Deeker Excel Discussion (Misc queries) 1 June 9th 05 02:05 PM


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