作者:死神邀请我 | 来源:互联网 | 2023-05-18 23:25
Thiscode:RPName_rngCells.Find(What:RPName,SearchOrder:xlByRows,_SearchDirection:xlPr
This code:
RPName_rng = Cells.Find(What:=RPName, SearchOrder:=xlByRows, _
SearchDirection:=xlPrevious).Row
gives me the last instance of a value in a list. It works well. I need to find the first instance of that value instead of the last and then use that as the top left anchor of a range to be named.
给我列表中值的最后一个实例。它运作良好。我需要找到该值的第一个实例而不是最后一个,然后使用它作为要命名的范围的左上角锚点。
Thanks for your help.
谢谢你的帮助。
2 个解决方案