Hyperlink Cell Reference

ryan_law2000

Well-known Member
Joined
Oct 2, 2007
Messages
738
Is there a way that under "Type the Cell Reference" that you can make it automatically change to the cell the hyperlink is on?

The reason why i ask this is because I have hyperlinks linking to there current cell but once i delete a row above that... the cell refernece doesnt change therefore changing the cell reference to the cell above it
 
Actually that is a very good point...
Can I get this to work in this case:

The cell I select it opens the userform, then this userform will have a full description of every cell range in that row = "B" / "C" / "D"
I would like each cell desctription to have a slash in between... is this possible?
Lets say that it will be in textbox1
 
Upvote 0

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
Well here's one way, though I would wonder why you want/need all the data in a single textbox.:eek:
Code:
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Dim arrValues
    If Target.Count > 1 Then Exit Sub
    If Intersect(Range("A1:A500"), Target) Is Nothing Then Exit Sub
    
    arrValues = Target.Offset(, 1).Resize(, 3)
    
    arrValues = Application.Transpose(arrValues)
    
    arrValues = Application.Transpose(arrValues)
    UserForm1.TextBox1 = Join(arrValues, "/")
    
    UserForm1.Show
    
End Sub
 
Upvote 0

Forum statistics

Threads
1,215,491
Messages
6,125,101
Members
449,205
Latest member
ralemanygarcia

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top