This article was previously published under Q189895
This article has been archived. It is offered "as is" and will no longer be updated.
When you run a Visual Basic for Applications macro in Microsoft Excel for Mac, you receive the following error message:
Compile error: Named argument not found
This problem may occur if the following conditions are true:
You used the macro recorder to create some or all of your Visual Basic macro.
You recorded a usage of the Find command on the Edit menu.
Microsoft provides programming examples for illustration only, without warranty either expressed or implied. This includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This article assumes that you are familiar with the programming language that is being demonstrated and with the tools that are used to create and to debug procedures. Microsoft support engineers can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific requirements. To work around the problem, you need to change the syntax of the Find method in your Visual Basic macro. For example, the macro recorder may create a line of code that is similar to the following: