tlrobinson512
New Member
- Joined
- Jun 24, 2014
- Messages
- 21
Good Morning All:
I am hoping someone will have an answer for me on my latest obstacle. I am trying to do a couple of different things:
1. I am running a simple Find Macro that takes the value (in this case, a reference number) from cell H7 on sheet1, and searches through a series of additional sheets in the workbook for the reference number. Once the reference number is found, what I'd like to do is to hyperlink H7 to that active cell. I have been able to hyperlink the active cell to H7, but not the opposite way.
This is where I am currently
'***************** FIND REFERENCE NUMBER ******************
If Trim(Val1) <> "" Then
With Sheets("Jamie").Range("A:A")
Set Rng = .Find(What:=Val1, _
After:=.Cells(.Cells.Count), _
LookIn:=xlValues, _
LookAt:=xlWhole, _
SearchOrder:=xlByRows, _
SearchDirection:=xlNext, _
MatchCase:=False)
End With
* I can't get this to do the opposite. Hyperlink "Dashboard" Range H7 to the activecell from the above Find. function.
'***************** HYPERLINK FOUND VALUE ******************
ActiveSheet.Hyperlinks.Add Anchor:=Selection, Address:="", SubAddress:= _
"Dashboard!H7"
If Not Rng Is Nothing Then
Application.Goto Rng, True
I am hoping someone will have an answer for me on my latest obstacle. I am trying to do a couple of different things:
1. I am running a simple Find Macro that takes the value (in this case, a reference number) from cell H7 on sheet1, and searches through a series of additional sheets in the workbook for the reference number. Once the reference number is found, what I'd like to do is to hyperlink H7 to that active cell. I have been able to hyperlink the active cell to H7, but not the opposite way.
This is where I am currently
'***************** FIND REFERENCE NUMBER ******************
If Trim(Val1) <> "" Then
With Sheets("Jamie").Range("A:A")
Set Rng = .Find(What:=Val1, _
After:=.Cells(.Cells.Count), _
LookIn:=xlValues, _
LookAt:=xlWhole, _
SearchOrder:=xlByRows, _
SearchDirection:=xlNext, _
MatchCase:=False)
End With
* I can't get this to do the opposite. Hyperlink "Dashboard" Range H7 to the activecell from the above Find. function.
'***************** HYPERLINK FOUND VALUE ******************
ActiveSheet.Hyperlinks.Add Anchor:=Selection, Address:="", SubAddress:= _
"Dashboard!H7"
If Not Rng Is Nothing Then
Application.Goto Rng, True