The following method is working just fine in Excel for Windows but on the Mac i get a 448 runtime error "cannot find argument"
Set aCell = Worksheets(SheetName).Rows(1).Find(What:=HeaderName, LookIn:=xlValues, _
LookAt:=xlWhole, SearchOrder:=xlByRows, SearchDirection:=xlNext, _
MatchCase:=False, SearchFormat:=False).Activate
Any ideas?
Like Paul mentioned, remove SearchFormat:=False
Set aCell = Worksheets(SheetName).Rows(1).Find(What:=HeaderName, LookIn:=xlValues, _
LookAt:=xlWhole, SearchOrder:=xlByRows, SearchDirection:=xlNext, _
MatchCase:=False).Activate
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.