hi all, good day!
this is a bit complicated, i'll try to explain as clearly as possible.
Referring to the attached sample, I have a range across rows and columns, in my sample would be F6:I10.
Each row in the range represents a hyperlink eg F6:I6 would be hyperlink 1. F7:I7 would be hyperlink 2.... and so on....
What I wish to do is, when the users click on hyperlink 1 it will trigger the macro where it changes the drop down list according to the numbering of the row, e.g. the first row in my range = F6:I6 would be row 1, thus the drop down would change to 1 when the hyperlink is clicked.
Currently, I do it in a very long-winded way where I write out all the codes for each range. (refer to attached sample)
However, in my actual data, I have currently 20 rows and possibly more in the future.
I have to modify the codes every time I added new rows or columns in my sheet.
I thought of defining the range by naming the upper left and lower right cells in the range to make it dynamic, but I don't know how to make the rest of the codes working...
My intended result is hoping to have a macros which is dynamic where I don't have to modify the whole thing should I added rows and columns in the sheet or in the range itself.
Appreciate any kind assistance.
Thank you.
Bookmarks