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).

Microsoft 365 and Office | Development | Other
Microsoft 365 and Office | Install, redeem, activate | For business | MacOS
Microsoft 365 and Office | Excel | For business | Windows
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Tanay Prasad 2,255 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 320 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

Your answer

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