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:




  1. Copy the WELCOME.WAV file to the Microsoft Dynamics GP application folder. 
     


  2. Log into Microsoft Dynamics GP.
     


  3. From the menus, click Microsoft Dynamics GP, then click User and Company.
     


  4. Press Ctrl-F11 to add the modal Company Login dialog to Visual Basic.
     


  5. Press Alt-F11 to switch to the Visual Basic Editor.
     


  6. In the Project list expand the Microsoft_Dynamics_GP project.
     


  7. Double click on the CompanyLogin module.
     


  8. 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 Long


    Private Sub Window_AfterOpen()
        Call PlaySound(“WELCOME.WAV”, 1)
    End Sub
     


  9. From the menus click Debug, and click Compile Microsoft Dynamics GP
     


  10. 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”.

Welcome to Dynamics.zip

Comments (7)

  1. 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.com

  2. David,

    Thank you so much!!  I love it.  I keep clicking on the switch company link all day just to hear it.

    Victoria

  3. For those of you who have been using or working with Dynamics GP, formally know as Great Plains" for

  4. This is really an extension of the blog article that David Musgrave wrote VBA – Welcome to Dynamics Example