VBA - Welcome to Dynamics Example
For those of you who have been involved with the Great Plains product for a while, you will remember the "Welcome to Dynamics" wave that played when the application was launched. Well, if you want that functionality again, you can use VBA to add it back.
Please see the GP Logos through the years posting for more information on the Welcome wave sound file.
You will need to be registered for Modifier and VBA add this yourself. If you are only registered for the Customisation Site License, you could install the package attached to this post. If you are going to add this yourself rather than using the packages supplied, please follow the steps below:
Copy the WELCOME.WAV file to the Microsoft Dynamics GP application folder.
Log into Microsoft Dynamics GP.
From the menus, click Microsoft Dynamics GP, then click User and Company.
Press Ctrl-F11 to add the modal Company Login dialog to Visual Basic.
Press Alt-F11 to switch to the Visual Basic Editor.
In the Project list expand the Microsoft_Dynamics_GP project.
Double click on the CompanyLogin module.
Copy the following script into script editor
Option Explicit
Private Declare Function PlaySound Lib "winmm.dll" _
Alias "sndPlaySoundA" _
(ByVal lpszSoundName As String, _
ByVal uFlags As Long) As LongPrivate Sub Window_AfterOpen()
Call PlaySound("WELCOME.WAV", 1)
End SubFrom the menus click Debug, and click Compile Microsoft Dynamics GP
From the menus click File, and click Save Microsoft Dynamics GP
That's it. Now whenever you open the Company Selection window during initial login or during the running of the application, the VBA code will play the Welcome wave sound file.
Example code for v8.0, v9.0 & v10.0 is attached at the bottom of the article.
Please see the "Installation Instructions.txt" file in each version's archive for more information.
31-Mar-2010: See update in the following post, Revisiting: "Welcome to Dynamics".
Comments
Anonymous
September 09, 2008
David, You definately knocked it over the wall with this one! This fun customization demonstrates once more the power of Dynamics GP's Visual Basic for Applications and the endless possibilities for customers and developers alike. Great work! Mariano Gomez, MVP http://www.maximumglobalbusiness.comAnonymous
September 09, 2008
Posting from the Dynamics GP Blogster http://dynamicsgpblogster.blogspot.com/2008/09/david-musgrave-on-welcome-to-dynamics.htmlAnonymous
September 09, 2008
Posting from DynamicAccounting.net http://msdynamicsgp.blogspot.com/2008/09/play-to-dynamics-on-dynamics-gp-launch.htmlAnonymous
September 10, 2008
David, Thank you so much!! I love it. I keep clicking on the switch company link all day just to hear it. VictoriaAnonymous
September 29, 2008
Posting from Vaidy's Blog http://vmdyngp.blogspot.com/2008/09/log-on-to-dynamics-gp-with-welcome.htmlAnonymous
October 02, 2008
For those of you who have been using or working with Dynamics GP, formally know as Great Plains" forAnonymous
June 01, 2009
This is really an extension of the blog article that David Musgrave wrote VBA - Welcome to Dynamics Example