Developing for Dynamics GP

by David Musgrave (Perth, WA, Australia) and the Microsoft Dynamics GP Developer Support Team (Fargo, ND, USA)

VBA - Welcome to Dynamics Example

VBA - Welcome to Dynamics Example

  • Comments 7

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

Attachment: Welcome to Dynamics.zip
Page 1 of 1 (7 items)
Comments Information

PLEASE READ BEFORE POSTING

Please only post comments relating to the topic of this page.

If you wish to ask a technical question, please use the links in the links section (scroll down, on right hand side) to ask on the Newsgroups or Forums. If you ask on the Newsgroups or Forums, others in the community can respond and the answers are available for everyone in the future.

Leave a Comment
  • Please add 3 and 8 and type the answer here:
  • Post