For some absurd reason, on my 2 years old Excel ("Excel for Microsoft 365 MSO (16.0.13127.21062) 64-bit")
the following "TEST" function go inside(!) the If... Then... generating the MsgBox, whatever test is done by the If,
while the current version of Excel (standard channel, 64-bit) correctly jumps to the "End If" bypassing the MsgBox instruction.
Does this happen with your Excel version too?
Is it a confirmed bug? (it seems very dangerous!)
Module Module1:
Class MainClass:Please Login or Register to view this content.
Class SubClass:Please Login or Register to view this content.
MacroBug.xlsm file, ready to testPlease Login or Register to view this content.
Screenshot:
Immagine 2022-10-09 134432.jpg
Bookmarks