can't see the vba code in a xlsm file when opened in excel for mac

cheron tan 0 Reputation points
2023-09-01T04:05:01.19+00:00

When I open an xlsm file I can see the vba code in module 1, as shown belowUser's image

But when I open the same xlsm file in excel for mac, firstly the "module 1" tag is shown as garbled text, secondly the vba code doesn't displayed at all, as shown below

User's image

I have reinsatalled the excel so I am sure it's in the newest version (16.76).

Excel
Excel
A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
1,517 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,556 questions
Office Mac
Office Mac
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Mac: A family of Apple personal computers that run the macOS operating system.
468 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Tanay Prasad 2,110 Reputation points
    2023-09-05T05:16:33.4533333+00:00

    Hi,

    This seems to be something unusual.

    Try the following troubleshooting methods-

    1. Enable macros in your Excel for Mac if you haven't already.
    2. Try opening a different XLSM file on your Mac to check if the issue is with this file only or if is it with your Excel for Mac.
    3. Some VBA code that works on Windows may not work on Mac due to platform differences. Ensure that the XLMS file is not using VBA features or code that are incompatible with Excel for Mac.
    4. Run a thorough virus and malware scan on your Mac to rule out any security-related issues.

    Best Regards.

    0 comments No comments

  2. peiye zhu 165 Reputation points
    2023-09-07T05:33:24.1933333+00:00

    Before opened in Mac,please remove all Chinese Charaters in the VBA codes because your mac is in English VBA environment.

    0 comments No comments