How can I get this 8 year old VBA 64-bit compiler bug fixed?

Cover Image for How can I get this 8 year old VBA 64-bit compiler bug fixed?
Matheus Mello
Matheus Mello
published a few days ago. updated a few hours ago

šŸ“ Title: How to Fix the 8-Year-Old VBA 64-Bit Compiler Bug in Microsoft Office

šŸ‘‹ Hey there, fellow VBA enthusiasts! šŸš€ Today, I want to address a long-standing issue that has been bugging many developers like us for years: the infamous 8-year-old VBA 64-bit compiler bug in Microsoft Office. šŸ˜±šŸ’„ Don't worry, though! I've got some easy solutions that can help you fix this issue. So, let's dive right in and solve this bug together! šŸ’ŖšŸ”§

Understanding the Bug šŸ›

The bug manifests itself when using a 64-bit VBA host, such as Access 365 or Excel 2016, and creating a class module with a Class_Terminate() sub. The problem arises when evaluating conditions inside an IF statement or a WHILE loop. The incorrect evaluation causes unexpected behavior and incorrect results. šŸ˜«

Reproducing the Bug šŸ”„

To see the bug in action, follow these steps:

  1. Create a class module named SomeClass with the following code:

    Private Sub Class_Terminate() End Sub
  2. Create a module named Test with the following code:

    Function ReturnFalse(o As Object) As Boolean ReturnFalse = False End Function Sub Test() Debug.Print ReturnFalse(New SomeClass) If ReturnFalse(New SomeClass) Then Debug.Print True Else Debug.Print False End If End Sub

When running the Test subroutine, you'll notice that in a 32-bit VBA host, the expected output is:

False
False

But in a 64-bit VBA host, it outputs:

False
True

The Call to Action šŸ””šŸ’¬

Now that you've experienced the bug firsthand, it's time to take action! Here are some steps you can follow to help get this bug fixed:

  1. Report the Bug: Visit the Microsoft Office support forum or use the Smile button in Excel to report the bug directly to Microsoft. Here are some helpful links that can guide you:

  2. Engage with the Community: Join discussions on platforms like Stack Overflow or uservoice.com. Upvote and contribute to existing posts that discuss the bug. Here are some active threads to get you started:

  3. Spread the Word: Share this blog post on social media, forums, or with fellow VBA enthusiasts to raise awareness about the bug. The more attention it gets, the higher the chances of getting it fixed.

šŸšØ Let's come together as a community and make a difference by ensuring that this long-standing bug gets the attention it deserves! Together, we can help Microsoft address and fix this issue, empowering developers worldwide. šŸŒšŸ’Ŗ

āœØ Keep coding, stay curious, and never stop exploring new possibilities with VBA! šŸ˜„šŸ‘©ā€šŸ’»šŸ‘Øā€šŸ’»


More Stories

Cover Image for How can I echo a newline in a batch file?

How can I echo a newline in a batch file?

updated a few hours ago
batch-filenewlinewindows

šŸ”„ šŸ’» šŸ†’ Title: "Getting a Fresh Start: How to Echo a Newline in a Batch File" Introduction: Hey there, tech enthusiasts! Have you ever found yourself in a sticky situation with your batch file output? We've got your back! In this exciting blog post, we

Matheus Mello
Matheus Mello
Cover Image for How do I run Redis on Windows?

How do I run Redis on Windows?

updated a few hours ago
rediswindows

# Running Redis on Windows: Easy Solutions for Redis Enthusiasts! šŸš€ Redis is a powerful and popular in-memory data structure store that offers blazing-fast performance and versatility. However, if you're a Windows user, you might have stumbled upon the c

Matheus Mello
Matheus Mello
Cover Image for Best way to strip punctuation from a string

Best way to strip punctuation from a string

updated a few hours ago
punctuationpythonstring

# The Art of Stripping Punctuation: Simplifying Your Strings šŸ’„āœ‚ļø Are you tired of dealing with pesky punctuation marks that cause chaos in your strings? Have no fear, for we have a solution that will strip those buggers away and leave your texts clean an

Matheus Mello
Matheus Mello
Cover Image for Purge or recreate a Ruby on Rails database

Purge or recreate a Ruby on Rails database

updated a few hours ago
rakeruby-on-railsruby-on-rails-3

# Purge or Recreate a Ruby on Rails Database: A Simple Guide šŸš€ So, you have a Ruby on Rails database that's full of data, and you're now considering deleting everything and starting from scratch. Should you purge the database or recreate it? šŸ¤” Well, my

Matheus Mello
Matheus Mello