CustomDocumentProperties inaccessible through Mac VBA for Excel

Daniel G Brown 20 Reputation points
2025-04-21T12:37:52.1366667+00:00

The following VBA code does not work on Mac Excel since the latest Microsoft update. It continues to work on the windows version of Excel. I have libraries of code that rely on document properties that have been running for a couple of years.

Sub test()
    MsgBox ThisWorkbook.CustomDocumentProperties.Count
End Sub

Does anyone know what is going on or have suggestions for a workaround?

I cannot think of any way to access the custom document properties or to rewrite this line of code.

I took the sample code from the Microsoft documentation Workbook.CustomDocumentProperties

and it does not work either on a mac but works fine on windows.


Sub test2()
   rw = 1 
   Worksheets(1).Activate 
   For Each p In ActiveWorkbook.CustomDocumentProperties 
       Cells(rw, 1).Value = p.Name 
       Cells(rw, 2).Value = p.Value 
       rw = rw + 1 
   Next
end Sub
VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,827 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Nick Ball 0 Reputation points
    2025-04-23T19:02:05.1933333+00:00

    We've invited our users to revert back to version 16.95.4. The process isn't too bad. Hopefully, the fix will be quick from Microsoft.

    Untitled.png

    Link to the appropriate installer for Excel 16.95.4: https://officecdn.microsoft.com/pr/C1297A47-86C4-4C1F-97FA-950631F94777/MacAutoupdate/Microsoft_Excel_16.95.25032931_Updater.pkg


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.