以下方法在Excel for Windows中工作正常,但在Mac上我得到448运行时错误“无法找到参数”
Set aCell = Worksheets(SheetName).Rows(1).Find(What:=HeaderName, LookIn:=xlValues, _
LookAt:=xlWhole, SearchOrder:=xlByRows, SearchDirection:=xlNext, _
MatchCase:=False, SearchFormat:=False).Activate
有什么想法吗?
答案 0 :(得分:0)
保罗提到,请删除SearchFormat:=False
Set aCell = Worksheets(SheetName).Rows(1).Find(What:=HeaderName, LookIn:=xlValues, _
LookAt:=xlWhole, SearchOrder:=xlByRows, SearchDirection:=xlNext, _
MatchCase:=False).Activate