web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

Please help me in the issue I am facing on using of VBA and Modifier in GP On PO entry form/Window

(0) ShareShare
ReportReport
Posted on by 10

​Hello,

I am facing an issue  in MS Dynamics GP. Long times back I had done some customization on PO Entry form  in GP. Note that time, I did not add any new field or modified PO Entry form in GP using Modifier because that time the requirement was different. so I wrote down a VBA program as I wanted to perform some activity when user would click on SAVE button on original PO Entry form / window in GP.

Now there is a new requirement due to which  I added a text field on a Header section in PO Entry form /window in GP  by using Modifier  . After that I entered a new Purchase order on a Modified PO entry form / window but it did not execute my VBA program which I wrote it few years before. It looks like my VBA program is tied up with the original PO entry window and that's why my VBA program is not running on Modified PO Entry form /Window

Can you advise me what to do ? 

I will appreciate your help.​

Categories:
I have the same question (0)
  • Suggested answer
    Beat Bucher  GP Geek  GPUG All Star Profile Picture
    28,058 Moderator on at

    Hi,

    that is quite possible that you may to re-add in VBA the modified forms.. I don't remember as it's been a long time I did any VBA customization.

    As a general rule you should try to stay away from VBA and convert any existing code to something else, as Microsoft announced a while back that VBA is no longer supported on new Windows platforms (2019 &up)

    You may get in touch with David Musgrave to get some help on re-coding the customizations of VBA with some other tools.

  • IT Analyst Profile Picture
    10 on at

    But why MS has still VBA and modifier option on for GP 2018? My VBA program was running perfectly fine but when  I added a text field on PO Entry window at header level, It stopped running my OLD VBA program. That's the only program we have in VBA

  • Beat Bucher  GP Geek  GPUG All Star Profile Picture
    28,058 Moderator on at

    I'm not saying VBA has been removed from the GP modifier and report writer options..

    Just saying that the Dynamics GP dev team has no control over VBA's future and it already happened that some disruptions were caused by Office updates deployed within Windows and rendered some GP apps with VBA code non-functional.

    Going forward, GP is not going to support officially VBA anymore for future Windows versions.. thus trying to suggest you find another way to replace VBA code.

  • Suggested answer
    David Musgrave MVP GPUG All Star Legend Moderator Profile Picture
    14,095 Most Valuable Professional on at

    Hi 

    To "fix" your VBA code you will need to change the EventMode property (bottom left) from Original to Modified.

    However, Beat is correct. You should be looking to move away from VBA as it is "End of Life" and does not work on new Windows Server platforms.

    One of the best approaches to replacing VBA is to use GP Power Tools. See below:

    https://winthropdc.wordpress.com/2019/08/12/gppt-replacing-vba-with-gp-power-tools-developer-tools/

    winthropdc.wordpress.com/.../

    Kind regards

    David

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 584 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 499 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 254 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans