Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics GP (Archived)

Possible to use both VBA and VSTools in GP10 at the same time?

Posted on by 751

 

Is it possible for GP10 to run both VBA AND VSTools customizations at the same time, as long as we do not attempt to call a function in VBA and VSTools using the same event?

For example, I have some VBA code behind behind the Save button and also the Post button of the SOPEntry form.  If remove the event handler for the Save button from VBA, and enable it in VSTools, but leave the VBA attached to the Post button, will I be able to get functions I need.

 

We are looking to convert our VBA code over to VSTools, however our current VBA file is very large with numerous forms and modules in it.  This would be a nice way to ease the code from VBA over to VStools.

*This post is locked for comments

  • Jerry Higgins Profile Picture
    Jerry Higgins 751 on at
    Re: Possible to use both VBA and VSTools in GP10 at the same time?

    Thanks, Dave.

  • Verified answer
    Dave Dusek Profile Picture
    Dave Dusek on at
    Re: Possible to use both VBA and VSTools in GP10 at the same time?

    Yes, you can have both.  If you run on the same event, you could create issues, but if they are different, you will be fine.  

  • Jerry Higgins Profile Picture
    Jerry Higgins 751 on at
    Re: Possible to use both VBA and VSTools in GP10 at the same time?

    I should say that it seems to be possible for VBA and VSTools to co-exist, so to speak, so what I really need to know is how safe is it?

    Eventually, we will scrap all VBA code and only go with VSTools.

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

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 Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans