Skip to main content

Notifications

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

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
    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

Jainam Kothari – Community Spotlight

We are honored to recognize Jainam Kothari as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard >

Featured topics

Product updates

Dynamics 365 release plans