Hi, I found the following two codes online and tweak a bit to cater to me needs.
I am using format control as my drop down list.
My logic is assign the first macro to a range of cells of with the same hyperlink,then it will trigger the second macro and thus the data will be auto populated.
My problem here is I have 7 leaders, thus I need to name 7 ranges of cells to 7 different hyperlink.
How should I combine all of them into one besides using if and elseif?
The name of my 7 leaders are:
Benny
Catherine
Colin
Jamil
Jasmine
Lourdes
Rohaya
Appreciate any assistance.
Thank you.
HC
Edit:
to be more specifc, in the first code when the range = $A$1:$C$1, then the listindex in second code shall be 1
if range = $A$2:$C$2, then the list index in second code shall be 2, so on and so forth until 7.
Appreciate if anyone can help me to combine them together, instead of using nested if.
Thank you
Bookmarks