Good morning,
I have this Select Case code:
Instead of having it associated Shapes(Application.Caller), i am looking for help in adapting it to a hyperlink.
This bit of code is really important and would still apply:
with the hyperlink always being on TopLeftCell.Row - 5
Any help greatly appreciated
Best regards
manc
I have this Select Case code:
Code:
Sub Button_Goto_Correct_Consignee()Dim BR As Long
BR = Sheets("H").Range("AL" & Sheets("H").Shapes(Application.Caller).TopLeftCell.Row - 5).Value
Select Case BR
Case Is = 1: Application.GoTo (ActiveWorkbook.Sheets("MDZ_AD").Range("A1"))
Case Is = 2: Application.GoTo (ActiveWorkbook.Sheets("MDZ_IFG").Range("A1"))
Case Is = 3: Application.GoTo (ActiveWorkbook.Sheets("MDZ_KFF").Range("A1"))
Case Is = 4: Application.GoTo (ActiveWorkbook.Sheets("MDZ_OSBJ").Range("A1"))
Case Is = 5: Application.GoTo (ActiveWorkbook.Sheets("MDZ_OSBD").Range("A1"))
Case Is = 6: Application.GoTo (ActiveWorkbook.Sheets("MDZ_SMD").Range("A1"))
Case Is = 7: Application.GoTo (ActiveWorkbook.Sheets("MDZ_SMJ").Range("A1"))
Case Is = 8: Application.GoTo (ActiveWorkbook.Sheets("MDZ_SAT").Range("A1"))
Case Is = 9: Application.GoTo (ActiveWorkbook.Sheets("MDZ_WSC").Range("A1"))
End Select
End Sub
Instead of having it associated Shapes(Application.Caller), i am looking for help in adapting it to a hyperlink.
This bit of code is really important and would still apply:
Code:
BR = Sheets("H").Range("AL" & Sheets("H").Shapes(Application.Caller).TopLeftCell.Row - 5).Value
Any help greatly appreciated
Best regards
manc