Good morning everyone
I am new in VBA and I am I am stuck since a few days while trying to create an hyperlink from the cell of a worksheet to another cell in a different worksheet but within the same workbook.
Unfortunately I am not able to indicate the SubAddress of the destination cell through two variables called i(the row) and DC(the column), while if i specify the destination cell as " '!A2 " for example, the hyperlink works straight away.
The 2 variables i and DC simply scroll the worksheet Countries, and check cell by cell if there were errors while inputing the data.
In case an error was found: the program notify the error in the Worksheet "ERRORS CHECK" and I would like to transform the notification-message into a "link" to the error: people see the error notification, read the problem, click on it and they are straight in front of the cell that need to be corrected.
Here is my (wrong) code:
Instead of the cell A2, I would like to reach as destination: the cell wsCountries.Cells(i, DC)
Does anyone knows how to write the syntax for this?
Thank you very much in advance, I hope it was clear!
Greetings
Emanuel
Bookmarks