Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics GP (Archived)

Dynamics Macro for Exchange Rate Table

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello Everyone,

      I am facing a problem with a particular Macro for exchange rates. This macro should enable me to

update the daily pairings (Any combination) into the System's Exchange Table Card.

The Command is as follows:

# DEXVERSION=16.00.0027.000 2 2

CheckActiveWin dictionary 'default' form 'MC_Exchange_Rate_Maintenance' window 'MC_Exchange_Rate_Maintenance'

MoveTo field 'Lookup Button 1'

ClickHit field 'Lookup Button 1'

NewActiveWin dictionary 'SmartList' form 'Exchange_Tables_Lookup' window 'Exchange_Tables_Lookup'

ActivateWindow dictionary 'SmartList' form 'Exchange_Tables_Lookup' window 'Exchange_Tables_Lookup'

ScrollByLine down scrollwin 'Exchange_Tables_Scroll'

ScrollByLine down scrollwin 'Exchange_Tables_Scroll'

ScrollByLine down scrollwin 'Exchange_Tables_Scroll'

ScrollByLine down scrollwin 'Exchange_Tables_Scroll'

ScrollByLine down scrollwin 'Exchange_Tables_Scroll'

ScrollByLine down scrollwin 'Exchange_Tables_Scroll'

ScrollByLine down scrollwin 'Exchange_Tables_Scroll'

ScrollByLine down scrollwin 'Exchange_Tables_Scroll'

ScrollByLine down scrollwin 'Exchange_Tables_Scroll'

ScrollByLine down scrollwin 'Exchange_Tables_Scroll'

ScrollByLine down scrollwin 'Exchange_Tables_Scroll'

ScrollByLine down scrollwin 'Exchange_Tables_Scroll'

ScrollByLine down scrollwin 'Exchange_Tables_Scroll'

ScrollByLine down scrollwin 'Exchange_Tables_Scroll'

ScrollByLine down scrollwin 'Exchange_Tables_Scroll'

ScrollByLine down scrollwin 'Exchange_Tables_Scroll'

ScrollByLine down scrollwin 'Exchange_Tables_Scroll'

ScrollByLine down scrollwin 'Exchange_Tables_Scroll'

ScrollByLine down scrollwin 'Exchange_Tables_Scroll'

ScrollByLine down scrollwin 'Exchange_Tables_Scroll'

ScrollByLine down scrollwin 'Exchange_Tables_Scroll'

# Key 1: 'NOK/AUD'

MoveTo line 5 browsewin 'Exchange_Tables_Scroll'

NewActiveWin dictionary 'default' form 'MC_Exchange_Rate_Maintenance'

window 'MC_Exchange_Rate_Maintenance'

ActivateWindow dictionary 'default' form 'MC_Exchange_Rate_Maintenance' window 'MC_Exchange_Rate_Maintenance'

ActivateWindow dictionary 'default' form 'MC_Exchange_Rate_Maintenance' window 'MC_Exchange_Rate_Maintenance'

TypeTo field 'Exchange Date' , '01122017'

MoveTo field 'Expiration Date'

ActivateWindow dictionary 'default' form 'MC_Exchange_Rate_Maintenance' window 'MC_Exchange_Rate_Maintenance'

TypeTo field 'Expiration Date' , '01012018'

MoveTo field 'Exchange Rate'

TypeTo field 'Exchange Rate' , '01609400'

MoveTo field 'Insert>> Button I'

ClickHit field 'Insert>> Button I'

NewActiveWin dictionary 'default' form 'MC_Exchange_Rate_Maintenance' window 'MC_Exchange_Rate_Maintenance'

CommandExec dictionary 'default' form 'MC_Exchange_Rate_Maintenance' command 'Save Button_w_MC_Exchange_Rate_Maintenance_f_MC_Exchange_Rate_Maintenance'

As I run the Macro, an error box pops up as "Macro Command not found. (Line#31)"

Is there anyone who has run a similar macro? Or anyone knows what could be the problem here?

Thank You. Kevin

*This post is locked for comments

  • Suggested answer
    L Vail Profile Picture
    L Vail 65,271 on at
    RE: Dynamics Macro for Exchange Rate Table

    Hi Kevin,

    It looks like you might be using the scroll bar to select your record instead of typing in the data. I counted down to line 31 and it looks to me like the lines starting on line 31:

    NewActiveWin dictionary 'default' form 'MC_Exchange_Rate_Maintenance'

    window 'MC_Exchange_Rate_Maintenance'

    There shouldn't be a line break in this statement. It looks like you have a line break after MC exchange rate maintenance.

    Take out that line break and see if it runs any better.

    Kind regards,

    Leslie

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,321 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans