Good morning
Thanks for taking time to read my enquiry
I have a WB that holds Criteria for assessing tenders, the wording of the tender output from another system need to exactly match the wording of the assessment system.
Where it does not match I need the system to goto the address of the assessment system.
I have found a very simple goto script:
Sub jumpToCell()
Dim aAddress() As String
aAddress = Split([Sheet2!D3].Text, "!")
Application.Goto Reference:=Worksheets(aAddress(0)).Range(aAddress(1))
End Sub
Which on a test WB works perfectly.
However, when I endeavour to change names of WS to a text say Sheet1 to A and Sheet2 to B I get a Run time error 9.
Would you be able to advise on how to remedy pleas.
R
Mel
Thanks for taking time to read my enquiry
I have a WB that holds Criteria for assessing tenders, the wording of the tender output from another system need to exactly match the wording of the assessment system.
Where it does not match I need the system to goto the address of the assessment system.
I have found a very simple goto script:
Sub jumpToCell()
Dim aAddress() As String
aAddress = Split([Sheet2!D3].Text, "!")
Application.Goto Reference:=Worksheets(aAddress(0)).Range(aAddress(1))
End Sub
Which on a test WB works perfectly.
However, when I endeavour to change names of WS to a text say Sheet1 to A and Sheet2 to B I get a Run time error 9.
Would you be able to advise on how to remedy pleas.
R
Mel