Module causes Invalid data format error

Larry Haydn

Board Regular
Joined
Jul 18, 2019
Messages
207
Office Version
  1. 365
Platform
  1. Windows
Hi Excel VBA Gurus,

I have a Excel VBA application, and one of the modules is used to open a specific userform.
This module seems to be corrupted. When I try to open this module to view the code, it raises an "Invalid data format".

A command button that runs this module also raises the same error.
Trying to open this userform via the Immediate Window also raises the same error.

This application has been running fine at my client's computers.
So I downloaded their copy and try to run on my computer.
The error appeared (but not on my client's computers).

I am using Office 365 (now known as Microsoft 365) on Windows 11.
I have not encountered any errors until a few days ago, when this error cropped up.

Anyone encountered this error recently?
If so, how did you solve the issue?

Regards,
Larry Haydn
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
Which version of 365 are you on? I've seen a lot of reports of weird errors with code and especially userforms on the recent 2212 release, which MS are apparently working on.
 
Upvote 0
Version 2212 (Build 15928.20216)
 

Attachments

  • Office Ver.jpg
    Office Ver.jpg
    49.2 KB · Views: 12
Upvote 0
I am now running version 2301, and is happy to announce that the problem has been resolved.
 

Attachments

  • Screenshot 2023-02-02 100349.jpg
    Screenshot 2023-02-02 100349.jpg
    34.2 KB · Views: 8
Upvote 0
Solution

Forum statistics

Threads
1,223,957
Messages
6,175,625
Members
452,661
Latest member
Nonhle

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top