Share via

VBA code not working on Mac

Anonymous
2016-11-13T08:00:33+00:00

I have Excel for Mac 2016.

The following code is throwing up an error message "Compile error: Named argument not found" and highlighting SearchFormat

Set aCell = orange.Find(What:=Rm, LookIn:=xlValues, _

LookAt:=xlWhole, SearchOrder:=xlByRows, SearchDirection:=xlNext, _

MatchCase:=False, SearchFormat:=False)

Has anyone any advice on what I can do to get this macro working?

Colin

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

Anonymous
2016-11-13T14:45:22+00:00

SearchFormat is not a supported parameter in Excel Mac VBA. Delete that parameter and it should work.

Was this answer helpful?

0 comments No comments

0 additional answers

Sort by: Most helpful