Error occurred during http request {"data":"","status":0,"config":{"method":"GET","transformRequest":[null],"transformResponse":[null],"url":"https://dgps.support.microsoft.com/api/v1/AutoSuggestion?SearchTerm=&OSName=Windows 8&Culture=en-us","headers":{"Accept":"application/json, text/plain, */*"},"startTime":1446328609757},"statusText":""} https://preview.support.microsoft.com/bundles/jslibraries?v=7zWNoRr1mHRbVzieg2FG-DPR0MvOgfYmV0WRO-0N0CM1:1 Macro with Find method results in compile error in Excel for Mac

Macro with Find method results in compile error in Excel for Mac

This article was previously published under Q189895
This article has been archived. It is offered "as is" and will no longer be updated.
SYMPTOMS
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
CAUSE
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.

    -and-
  • You recorded a usage of the Find command on the Edit menu.
WORKAROUND
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:
   Cells.Find What:="Test", After:=ActiveCell, LookIn:=xlFormulas, LookAt _      :=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, _      MatchCase:=False, Activate:=True				
You must change this line of code to the following:
   Cells.Find(What:="Test", After:=ActiveCell, LookIn:=xlFormulas, LookAt _      :=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, _      MatchCase:=False).Activate				
STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.
MacXLX Mac XLX XL2001 XL98 XL vba automation automatic vb code
Properties

Article ID: 189895 - Last Review: 03/04/2014 05:28:28 - Revision: 4.0

  • Microsoft Excel 2004 for Mac
  • Microsoft Excel X for Mac
  • Microsoft Excel 2001 for Mac
  • Microsoft Excel 98 for Macintosh
  • kbnosurvey kbarchive kbbug kberrmsg kbpending KB189895
Feedback