CalRich1023
New Member
- Joined
- Mar 15, 2021
- Messages
- 48
- Office Version
- 365
- Platform
- Windows
- MacOS
Hello,
I've a "search" page that loops through all the sheets to return data to my search page and produce a hyperlink to each sheet said data is found. One of the search criteria is from a data validation list. I believe this is messing up the ordered list of search results. I have the code below that works perfect for the first item in the data validation list, but as soon as i search for something that is lower on the data validation list, my results get all jumbled and it messed everything up. Could someone please help correct my error in this code?
Worksheets("SEARCH").Hyperlinks.Add Anchor:=Cells(i + 1, "A"), Address:="", SubAddress:=Worksheets(i).Name, TextToDisplay:=Worksheets(i).Name
I've a "search" page that loops through all the sheets to return data to my search page and produce a hyperlink to each sheet said data is found. One of the search criteria is from a data validation list. I believe this is messing up the ordered list of search results. I have the code below that works perfect for the first item in the data validation list, but as soon as i search for something that is lower on the data validation list, my results get all jumbled and it messed everything up. Could someone please help correct my error in this code?
Worksheets("SEARCH").Hyperlinks.Add Anchor:=Cells(i + 1, "A"), Address:="", SubAddress:=Worksheets(i).Name, TextToDisplay:=Worksheets(i).Name