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 :
Microsoft Dynamics GP (Archived)

How to achieve run script from vba microsoft gp?

(0) ShareShare
ReportReport
Posted on by 325

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

I have the same question (0)
  • Suggested answer
    MG-16101311-0 Profile Picture
    26,225 on at

    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

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 > 🔒一 Microsoft Dynamics GP (Archived)

#1
Community Member Profile Picture

Community Member 2

#2
mtabor Profile Picture

mtabor 1

#2
Victoria Yudin Profile Picture

Victoria Yudin 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans