Unable to access the Worksheet window in Visual Basic editor in Excel (Microsoft 365) on Mac with error message "Variable uses an Automation type not supported in Visual Basic"

Brian Gormley 0 Reputation points
2024-09-26T14:59:20.9966667+00:00

Long time Excel user, but new to VBA. Attempted to copy VBA code to sort a worksheet into the VB Editor Worksheet window. VBE would not open the Worksheet widow and produced the error message "Variable uses an Automation type not supported in Visual Basic." Error message appears regardless of which existing Excel file VBE Worksheet widow I try to open and even in new blank workbooks. There is no user entered VBA code in any of the workbooks in which I've tried to access the Worksheet window. I completely uninstalled MS 365 on my Mac and reinstalled it, but the error still appears. I had previously (before deleting and reinstalling MS 365) copied the code into one Excel file on my MAC, but I had deleted the code and saved the file after deleting it.

Can anyone tell me how to overcome this problem?

Excel
Excel
A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
1,868 questions
Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
3,880 questions
0 comments No comments
{count} votes

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.