When I try using the following code to find the address of specific cells in one workbook, and copy the address to another wb it works fine.
Set ra_from = wb_from.Sheets("Core").Cells.Find(What:=cel_name, LookIn:=xlValues, LookAt:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:=False, SearchFormat:=False)
wb_macro.Sheets("Engine").Activate
wb_macro.Sheets("Engine").Range(cel.Address).Offset(0, 3) = ra_from.Addres
However, I would like to search only in one column, so I switched Cells for Columns("B:B")
Set ra_from = wb_from.Sheets("Core").Columns("B:B").Find(What:=cel_name, LookIn:=xlValues, LookAt:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:=False, SearchFormat:=False)
wb_macro.Sheets("Engine").Activate
wb_macro.Sheets("Engine").Range(cel.Address).Offset(0, 3) = ra_from.Address
And I get the error "Object variable or With block variable not set". Does anyone know what might be the problem?