Tuesday, September 9, 2008

David Musgrave on "Welcome to Dynamics!" VBA Customization



David Musgrave knocks it over the wall with this fun, yet powerful customization that shows the endless possiblities of Dynamics GP's Visual Basic for Applications. For those of you who are not quite familiar with the first four or five releases of GP, upon launching the application, a WAV file would play the now famous words in a sassy voice "Welcome to Dynamics!".


In David's script, the PlaySound method found in the Windows Winmm.dll library allows a user to play a sound file. If the flag parameter is switch from 1 to 0, the method will pause while it plays the sound allowing the screen to refresh. By setting the flag parameter to 1, the sound is played immediately forcing VBA not to wait for the screen refresh.

As usual, in his article David provides the code, wave file, package file, and step by step instructions for you to recreate this customization and have fun.

Until next post!

MG.-
Mariano Gomez, MIS, MVP, MCP, PMP
Maximum Global Business, LLC
http://www.maximumglobalbusiness.com/

No comments: