+ Reply to Thread
Results 1 to 3 of 3

VB code to play a .WAV file

  1. #1
    Registered User
    Join Date
    09-09-2010
    Location
    freddy.bharucha@gmail.com
    MS-Off Ver
    Excel 2007
    Posts
    1

    VB code to play a .WAV file

    Hi,

    How do i play a .wav file and incorporate that in a vb code?

    e.g. when you click on a macro a wav file is played.


    Cheers

  2. #2
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: VB code to play a .WAV file

    How about this link in this forum?

    http://www.exceltip.com/st/Playing_W...Excel/460.html

  3. #3
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,887

    Re: VB code to play a .WAV file

    You shouldn't need all that code to play a .wav file. You can shorten it to simply:
    Please Login or Register  to view this content.
    That would go into a standard module (not a worksheet or workbook module), but it can be called from either.

+ 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