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)

Speedup Macros A Question From Leslie Vail

(0) ShareShare
ReportReport
Posted on by

Hi,

I was searching a way to speed up my Macro in GP I landed on following article, I followed the guideline but it did not speed up my Macro. Please help?community.dynamics.com/.../speed-up-your-macros

Following is my Macro...

# DEXVERSION=12.00.0270.000 2 2

CheckActiveWin dictionary 'default'  form 'PM_Transaction_Entry' window 'PM_Transaction_Entry'

  TypeTo field 'Voucher Number - WORK' , 'PJV-2017-04-01'

  MoveTo field 'IC TRX'  # 'FALSE'

  MoveTo field 'Document Type' item 1  # 'Invoice'

  ClickHit field 'Document Type' item 1  # 'Invoice'

  MoveTo field 'Transaction Description'

  TypeTo field 'Transaction Description' , 'XYZ ABC QRX'

  MoveTo field 'Batch Number'

  TypeTo field 'Batch Number' , 'PJV-300417'

  MoveTo field 'Document Date'

  TypeTo field 'Document Date' , '30042017'

  MoveTo field 'Vendor ID'

  TypeTo field 'Vendor ID' , 'ABC123'

  MoveTo field 'Vendor Address Code - Primary'

  TypeTo field 'Currency ID' , 'PKR'

  MoveTo field 'Document Number'

  TypeTo field 'Document Number' , 'SOA-04-17 001'

  MoveTo field 'Purchase Order Number'

  MoveTo field 'Shipping Method'

  MoveTo field 'Tax Schedule ID'

  MoveTo field 'Purchases Amount'

  TypeTo field 'Purchases Amount' , '210900'

  MoveTo field 'Trade Discount Amount'

  MoveTo field 'Distributions Button'

  ClickHit field 'Distributions Button'

NewActiveWin dictionary 'default'  form 'PM_Transaction_Entry_Distribution' window 'PM_Transaction_Entry_Distribution'

# Key 1: 'PJV-2016-10-052', '0', '', '0', '16384'

  MoveTo line 1 scrollwin 'Distribution_Scroll' field 'Distribution Account Number':'Account_Segment_Pool1'

# Key 1: 'PJV-2016-10-052', '0', '', '0', '16384'

  MoveTo line 1 scrollwin 'Distribution_Scroll' field 'Distribution Account Number':'Account_Segment_Pool2'

# Key 1: 'PJV-2016-10-052', '0', '', '0', '16384'

  MoveTo line 1 scrollwin 'Distribution_Scroll' field 'Distribution Account Number':'Account_Segment_Pool3'

# Key 1: 'PJV-2016-10-052', '0', '', '0', '16384'

  TypeTo line 1 scrollwin 'Distribution_Scroll' field 'Distribution Account Number':'Account_Segment_Pool4' , '0001'

# Key 1: 'PJV-2016-10-052', '0', '', '0', '16384'

  MoveTo line 1 scrollwin 'Distribution_Scroll' field 'Distribution Type' item 6  # 'PURCH'

  MoveTo field 'AA Button'

NewActiveWin dictionary 'Analytical Accounting'  form aaPMTRXEntry window Main

ActivateWindow dictionary 'Analytical Accounting'  form aaPMTRXEntry window Main

ActivateWindow dictionary 'Analytical Accounting'  form aaPMTRXEntry window Main

ActivateWindow dictionary 'Analytical Accounting'  form aaPMTRXEntry window Main

ActivateWindow dictionary 'Analytical Accounting'  form aaPMTRXEntry window Main

ActivateWindow dictionary 'Analytical Accounting'  form aaPMTRXEntry window Main

# Key 1:

  MoveTo line 1 scrollwin ScrollCode field aaTrxDimCode

# Key 1: '39844', '1', '1', '11'

  TypeTo line 1 scrollwin ScrollCode field aaTrxDimCode , 'BCFR'

# Key 1:

  MoveTo line 2 scrollwin ScrollCode field aaTrxDimCode

# Key 1: '39844', '1', '1', '12'

  TypeTo line 2 scrollwin ScrollCode field aaTrxDimCode , 'AE'

# Key 1:

  MoveTo line 3 scrollwin ScrollCode field aaTrxDimCode

# Key 1: '39844', '1', '1', '19'

  TypeTo line 3 scrollwin ScrollCode field aaTrxDimCode , 'NYKF-025'

# Key 1:

  MoveTo line 4 scrollwin ScrollCode field aaTrxDimCode

# Key 1: '39844', '1', '1', '14'

  TypeTo line 4 scrollwin ScrollCode field aaTrxDimCode , 'ABC'

# Key 1:

  MoveTo line 5 scrollwin ScrollCode field aaTrxDimCode

# Key 1: '39844', '1', '1', '15'

  TypeTo line 5 scrollwin ScrollCode field aaTrxDimCode , 'D'

# Key 1:

  MoveTo line 7 scrollwin ScrollCode field aaTrxDimCode

# Key 1: '39844', '1', '1', '17'

  TypeTo line 7 scrollwin ScrollCode field aaTrxDimCode , 'ABC'

  MoveTo field 'OK Button K'

  ClickHit field 'OK Button K'

NewActiveWin dictionary 'default'  form 'PM_Transaction_Entry_Distribution' window 'PM_Transaction_Entry_Distribution'

NewActiveWin dictionary 'default'  form 'PM_Transaction_Entry_Distribution' window 'PM_Transaction_Entry_Distribution'

  ClickHit field 'OK Button'

NewActiveWin dictionary 'default'  form 'PM_Transaction_Entry' window 'PM_Transaction_Entry'

  MoveTo field 'Save Button'

  ClickHit field 'Save Button'

*This post is locked for comments

I have the same question (0)
  • Verified answer
    L Vail Profile Picture
    65,271 on at

    Hi,

    I can't tell anything from your macro code, it's all about the setup. What you need to be sure to do is go to the Advanced Macro Menu>Status. Open the macro you want to run using the Current Play Macro lookup. Check the No User Interface Flash checkbox, and then click OK.

    Kind regards,

    Leslie

  • Community Member Profile Picture
    on at

    OK. It means I cant speed up my macros b/c I have done the same but screen still flash and macro takes its time. Thank you!

  • L Vail Profile Picture
    65,271 on at

    Hi,

    The interface will still flash, it just does not fully render the image as it would otherwise. If you uncheck the box and then run your macro, it should run much slower.

    Thank you for the green checkmark!

    Leslie

  • KirkLivermont Profile Picture
    5,985 on at

    Hi Leslie,

    Thanks for elaborating about the no user interface flash. I always assumed it just didn't work because of the partial rendering.

    Kirk

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