Skip to main content

Notifications

Finance | Project Operations, Human Resources, ...
Suggested answer

GP (2019) VBA Compatibility Issue on Windows server 2019

(1) ShareShare
ReportReport
Posted on by 40
We have almost completed a test upgrade from GP 2018 to GP 2019(18.2.1100).  GP is running normally until any VBA code is run. GP is installed on Windows Server 2019 with SQL 2019. We have quite a few customization in GP2018 using VBA. The project files imported without errors and all VBA code looks normal in the Editor. But GP crashes anytime VBA code is run.
Need help with figuring out solution to work VBA package in GP 2019(18.2.1100) on Windows Server 2019.
Categories:
  • Craig Fuller Profile Picture
    Craig Fuller 409 on at
    RE: GP (2019) VBA Compatibility Issue on Windows server 2019

    I'm surprised nobody suggested using Visual Studio Tools for Microsoft Dynamics GP. I switched from VBA to that years ago as VB.Net is very similar to VBA and it made the coding transition easy. Also, Visual Studio Tools is much more capable than VBA.

    We are currently on GP2018 and I am using Visual Studio 2019. Install the SDK located on the GP install media, in the Tools - SDK - VS Tools folder. I believe the Programmers Guide pdf gets installed as well so you can look it over. After installing Visual Studio 2019 you can go to Extensions and install the Microsoft Dynamics GP Item and Project Templates.

  • Chris Holding Profile Picture
    Chris Holding 5 on at
    RE: GP (2019) VBA Compatibility Issue on Windows server 2019

    Whilst not using Dynamics, this thread helped me understand why a legacy Access application was suffering. Thanks!

  • EnriqueGarcia Profile Picture
    EnriqueGarcia 113 on at
    RE: GP (2019) VBA Compatibility Issue on Windows server 2019

    Yikes!

    Sorry for the confusion Michael   

    Indeed this one has us scratching our heads.

  • mnola Profile Picture
    mnola 70 on at
    RE: GP (2019) VBA Compatibility Issue on Windows server 2019

    Hi Enrique,

                   Actually it is Michael, not Deepak (guess I should remember to sign my posts.  Believe Deepak originated this BLOG chain.  Had added my question to Justin, who also placed a response to this chain, wondering about what the true underlying cause is with the Windows 2019 O/S and GP/VBA.  

    Take care,

    Michael J. Nola.

  • EnriqueGarcia Profile Picture
    EnriqueGarcia 113 on at
    RE: GP (2019) VBA Compatibility Issue on Windows server 2019

    Thanks, Deepak. 

    I did notice the link placed a quote " after the address and had figured that out. However do thank you for the heads up.

  • mnola Profile Picture
    mnola 70 on at
    RE: GP (2019) VBA Compatibility Issue on Windows server 2019

    Hi Enrique,

                  Noting that the link on the page that I posted isn't working.  What you want to look for is "www.microsoft.com/.../details.aspx.  In case this link doesn't work either, then look for "Visual Basic for Applications Runtime Security Update", Knowledge Base Article KB974945.

    I personally haven't tried downloading/installing the update, as my client that I was working with already had the DLL available, but can clearly see "Vbe6.dll 6.5.10.53" listed at the bottom of the KB article's Additional Information page.

    We are definitely pushing to get all our clients off of VBA, but even with a workaround, you never know what might break it next!  Just went through the process of changing DOCX to PDF to get around the new MS Security Update that breaks DOCX documents generated from GP Templates and switching from MAPI to Exchange to get around the Outlook/GP/VBA crashing issue.

  • EnriqueGarcia Profile Picture
    EnriqueGarcia 113 on at
    RE: GP (2019) VBA Compatibility Issue on Windows server 2019

    Glad to learn about this option as it buys us some time to communicate to the customer and get approval to re-develop these customizations.

  • Suggested answer
    mnola Profile Picture
    mnola 70 on at
    RE: GP (2019) VBA Compatibility Issue on Windows server 2019

    Hi Terry,

              As noted in my post "Not sure where they found the newer VBE6.DLL file".  However, a Google Search points to 6.5.10.53 as being a security fix, which the client must have applied on one of their older Servers.

    The following link (www.microsoft.com/.../details.aspx looks like it might do the job.

    Regardless of this, do you know the underlying cause to why VBA stops working on Windows 2019?  

    Expect the above will only be a temporary workaround and that there is no guarantee that a new Windows 2019 security update won't break things again.  And, yes, we need to get the client off of VBA sooner than later, but that is going to take quite a bit of time/resources due to the volume of modifications made using VBA through the years in their environment.

  • Terry R Heley Profile Picture
    Terry R Heley Microsoft Employee on at
    RE: GP (2019) VBA Compatibility Issue on Windows server 2019

    Michael, can you provide the link from the customer for the 6.5.10.53 so it can be reviewed as a future consideration of what they did to get this working, thanks

    Terry

    Microsoft

  • mnola Profile Picture
    mnola 70 on at
    RE: GP (2019) VBA Compatibility Issue on Windows server 2019

    Hi Justin,

                 Have a client that is in the same boat in that they are in process of upgrading all their Servers to Windows 2019 and eventually upgrading GP as well.  They have an extensive amount of VBA (that needs to be converted) and ran into the same GP Crashing issue anytime VBA code was touched on.

        However, one of the client's techs found that replacing the VBE6.dll with a later version got them past the crashing issue.  Albeit, this is a temporary workaround, as there is no guarantee that there won't be a Security Update that breaks things again (like the Office Suite security update that broke DOCX files that you so kindly posted about in another link).  Not sure where they found the newer VBE6.DLL file, but the version information that was able to find is below:

    Crashing version ==> 6.5.10.32

    Working version ==>  6.5.10.53

    Location C:\Program Files (x86)\Common Files\microsoft shared\VBA\VBA6

        When searching the internet and other sites such as this, haven't found any mention of the temporary workaround mentioned above.  Wondering what it is with Windows 2019 that stops GP/VBA combo from working?  As noted, this temporary workaround resolves the GP crashing issue, but does not fix the GP/VBA/Outlook (Email) crashing issue, which requires an earlier version of Office, no VBA or switching from MAPI to Exchange.

        So, wondering what your thoughts are on this?

    Regards,

    Michael.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

News and Announcements

Announcing Category Subscriptions!

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,359 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,370 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans