Feedback by UserVoice

How can we improve Excel for Mac?

Bring VBA on Excel for Mac to parity with Excel for Windows

Bring VBA on Excel for Mac to parity with Excel for Windows.
Currently, there are too many missing VBA elements missing. It is a major problem for those of us with mixed environments. Many things that worked under Excel 2011 no longer work in 2016.

Why is the not being addressed?

77 votes
Sign in
Sign in with: Facebook Google
Signed in as (Sign out)

We’ll send you updates on this idea

Anonymous shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →


Sign in
Sign in with: Facebook Google
Signed in as (Sign out)
  • Mark Eisler commented  ·   ·  Flag as inappropriate

    Is it the case that Application.MacroOptions is no longer supported in Excel for Mac (version 16.26, 2019)? As described by Microsoft (1) it should provide descriptions to to display a user-defined function (UDF) in a built-in or new category within the Insert Function dialog box, a description and status bar text.

    This seems to be be an old chestnut, as discussed in various online postings, e.g. most usefully in (2) and (3) below.

    I have tried doing this until blue in the face, using the simplest imaginable UDF that adds two numbers together. Application.MacroOptions doesn’t seem to work at all under any circumstances in Excel for Mac. I have tried running the code when Excel starts by calling a sub from the Auto_Open() in my PersonalMacroWorkbook. The code fails, error 2004. I’ve tried running it by calling the same code after excel opens, either in the PersonalMacroWorkbook, or in a .xlsm workbook other than the one containing the VBA code for the UDF to be described; in both cases, again the code fails with the same error.

    Finally, I’ve tried running the Application.MacroOptions code in the workbook containing the UDF to be described, being sure to do so before first use of my UDF. Here, the code runs with no error - I can step though it to confirm that, BUT, it has absolutely no effect. If the Formula Builder is already open when I type the name of the UDF in a cell, I do see the name of my UDF and its result in the Formula Builder. But that happens anyway, regardless of whether or not code containing Application.MacroOptions for the UDF has been run. And absolutely nothing specified in Application.MacroOptions appears in the Formula Builder or elsewhere; my UDF doesn’t appear under any category regardless what numerical or string value is given for the Category argument, and nothing appears in the status bar or in the Formula Builder under Fx or Syntax where info is shown for the built-in Excel functions.

    So should I conclude that Application.MacroOptions is no longer supported in Excel for Mac? Or have I missed something and more undocumented steps are required to make it work? It would be mighty helpful for Microsoft to clarify this so that Excel for Mac users need not to waste hours trying to get this to work!



    Sub DescribeUDF()
    Dim ArgDesc(1 To 2) As String
    ArgDesc(1) = "Val1: first number to be multiplied"
    ArgDesc(2) = "Val2: second number to be multiplied [optional]; if missing, Val1 is also used for Val2"

    ' This to confirm the code has run
    MsgBox "Running DescribeUDF() in " & ActiveWorkbook.Name

    Application.MacroOptions _
    Macro:="TestAdd", _
    Category:=14, _
    Description:="Add two numbers", _
    ArgumentDescriptions:=ArgDesc, _
    StatusBar:="TestAdd(Val1 As Variant, Optional Val2 As Variant) As Variant"

    End Sub

    Public Function TestAdd(Val1 As Variant, Optional Val2 As Variant) As Variant

    If IsMissing(Val2) Then
    Val2 = Val1
    End If

    TestAdd = Val1 + Val2

    End Function

  • Anonymous commented  ·   ·  Flag as inappropriate

    ‘Apparently’ relative reference has been fixed, although, I’ve barely opened XL on my Mac because it’s almost useless. It definitely reeks of some kind of hillbilly warfare between Microsoft & Apple.

  • Sherree commented  ·   ·  Flag as inappropriate

    I agree these are important features that are needed in excel. I was forced to update in order to use it. These are extremely important features!!!!

  • Anonymous commented  ·   ·  Flag as inappropriate

    At least get the assignment of macros to keystroke combinations into working conditions for BOTH EXCEL AND WORD. A VBA macro doesn't help too much if you cannot get it to work faster than doing the same stuff by hand.

  • Gustavo commented  ·   ·  Flag as inappropriate

    Es muy importante que de una vez por todas hagan 100% compatibles las versiones de Excel de Windows y Mac, porque casi todos tenemos Mac en casa y Windows en el trabajo o viceversa.

    Por ejemplo lo comentado aquí: el no poder insertar un UserForm provoca que macros viejas elaboradas en Windows, que utilizaban UserForm´s fallen y no abran en Mac 2016. Así mismo de frustrante es intentar programar eventos de Libro u hoja de trabajo en VBA ya que al invocar los eventos dentro del menú de eventos del Libro u de las Hojas de Trabajo, VBA genera un error y no pone los encabezados del evento requerido, teniendo que investigar en un texto y tener que capturar todo a mano, perdiendo la esencia VISUAL de VBA...

Feedback and Knowledge Base