Skip to main content

Notifications

Microsoft Dynamics GP (Archived)

How to achieve run script from vba microsoft gp?

(0) ShareShare
ReportReport
Posted on by 323

Hi experts,

Is it possible to replicate the "run script" of dexterity in vba ? What i'm trying is, On a vba button click i want to execute the code behind the dexterity change script of a field !

*This post is locked for comments

  • Suggested answer
    Mariano Gomez Profile Picture
    Mariano Gomez 26,225 on at
    RE: How to achieve run script from vba microsoft gp?

    This is possible by referencing the Dynamics Continuum Integration Library COM object in your VBA project. You can then call the ExecuteSanScript method passing in the script you want to execute.

    Dim ErrVal As Integer
    Dim ErrMsg As String
    
    ErrVal = ExecuteSanScript("run script fieldname of window windowName of form formName;", ErrMsg);
    
    If ErrVal <> 0 Then 
       'A compiler error occurred. Display the error. 
       MsgBox ErrMsg
    End If
    


    You can download Continuum's documentation here:

    https://www.microsoft.com/en-us/download/details.aspx?id=6800 

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

Featured topics

Product updates

Dynamics 365 release plans