Return 带有地址的单元格值
Return cell value with an address
我在查找函数后有一个单元格地址:
YOLO = Worksheets("Adobe Reader").Range("A1:A500").Find("YOLO").Address 'Exemple : $A1
当我尝试显示地址范围的值时,它只显示地址:
Worksheets("Caracteristiques").Range("B1").Value = Worksheets("Adobe Reader").Range("YOLO").Value
在范围 B1 中,我有 $A$131。我怎样才能获取单元格值?
不如像下面这样稍微改变一下:
Dim YOLO As Range
Set YOLO = Worksheets("Adobe Reader").Range("A1:A500").Find(What:="YOLO" LookAt:=xlPart)
'or LookAt:=xlWhole if the full content of the cell
If Not YOLO is Nothing Then Worksheets("Caracteristiques").Range("B1").Value = YOLO.Value
'or to get the address (YOLO.Address)
我在查找函数后有一个单元格地址:
YOLO = Worksheets("Adobe Reader").Range("A1:A500").Find("YOLO").Address 'Exemple : $A1
当我尝试显示地址范围的值时,它只显示地址:
Worksheets("Caracteristiques").Range("B1").Value = Worksheets("Adobe Reader").Range("YOLO").Value
在范围 B1 中,我有 $A$131。我怎样才能获取单元格值?
不如像下面这样稍微改变一下:
Dim YOLO As Range
Set YOLO = Worksheets("Adobe Reader").Range("A1:A500").Find(What:="YOLO" LookAt:=xlPart)
'or LookAt:=xlWhole if the full content of the cell
If Not YOLO is Nothing Then Worksheets("Caracteristiques").Range("B1").Value = YOLO.Value
'or to get the address (YOLO.Address)