I don't use hyperlinks so had to play around with your code & do a bit of googgling
Is this what you were trying to achieve
A couple of things to note when declaring variables
Certain words are used and reserved by Excel for its own use and should not be used for variable names e.g Path, Cells, Rows, Row, Columns, Date & hundreds more of them. Using them as variable names can give unexpected results
In your code
Path is declared as a variable type & mssg is declared as a string type
To declare them correctly you need to use As Type after each variable name.
It is also a good idea to use the 1st letter or several letters to denote what type the variable is.
When I declare variables I always use the following 1st letter for
s = String
i = Integer
l = Long
b = Boolean
r = Range
ws = Worksheets/Sheets
This helps to eliminate coding errors in complex macros & also helps to eliminate the accidental use of reserved words
Bookmarks