+ Reply to Thread
Results 1 to 4 of 4

Play .WAV File and run macro simultaneously

  1. #1
    Registered User
    Join Date
    04-07-2008
    Location
    Adelaide, SA
    Posts
    87

    Play .WAV File and run macro simultaneously

    Hi all,

    Just wondering if it's possible to play a .WAV file and not have to wait for it to finish before a macro can run, or even play a .WAV file and not have to wait for it to finish to perorm normal manual tasks.

    I have a code which is from www.cpearson.com and runs the .WAV file, but am confronted with this issue.

    Please Login or Register  to view this content.
    Can anyone help?

    Thanks,

    Yappa

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,485
    For Chip's code you need to set the flag value.

    Please Login or Register  to view this content.
    Another example can be found on John Walkenbach's site
    http://www.j-walk.com/ss/excel/tips/tip59.htm
    Cheers
    Andy
    www.andypope.info

  3. #3
    Registered User
    Join Date
    04-07-2008
    Location
    Adelaide, SA
    Posts
    87
    Thanks Andy that works perfect. Just wondering if you could explain what's happening with this part of the code:

    Please Login or Register  to view this content.
    If not, appreciate your help anyway.

    Yappa

  4. #4
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,485
    It's simply declaring the function contained within winmm.dll
    so the compiler knows about it.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1