Hi, everyone
on of my record in range("b3") is "Copy of Read Only - Personal Loan 20171231~tmp23409752.xlsx", and this record is written by vba code, it's a workbook name.
when my vba code wants to find this record in range("B:B"), an error occured, it just cann't find this record.
and the following is my code:
If rng.Row = Thisworkbook.sheets("Sheet1").Range("B:B").Find(what:=rng.Offset(0, -2).Value, LookIn:=xlValues, LookAt:=xlWhole).Row Then
I've tryed lookin:=xlformulas too,or even just tryed ".find(what:=rng.Offset(0, -2).Value).row", it sitll doesn't work.
here rng.address is “D3”
The record is in there, but it still cann't find it, it is very strange.
Can someone here can help me with this.
Thank you very much!!!
on of my record in range("b3") is "Copy of Read Only - Personal Loan 20171231~tmp23409752.xlsx", and this record is written by vba code, it's a workbook name.
when my vba code wants to find this record in range("B:B"), an error occured, it just cann't find this record.
and the following is my code:
If rng.Row = Thisworkbook.sheets("Sheet1").Range("B:B").Find(what:=rng.Offset(0, -2).Value, LookIn:=xlValues, LookAt:=xlWhole).Row Then
I've tryed lookin:=xlformulas too,or even just tryed ".find(what:=rng.Offset(0, -2).Value).row", it sitll doesn't work.
here rng.address is “D3”
The record is in there, but it still cann't find it, it is very strange.
Can someone here can help me with this.
Thank you very much!!!