Results 1 to 3 of 3

Playing an audio file from a macro.

Threaded View

  1. #1
    Registered User
    Join Date
    06-04-2010
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    53

    Playing an audio file from a macro.

    Hi everyone,

    I run a macro which monitors a couple of variables on a 10 minute basis and when the variables reaches a certain level I play a sound or alarm. The alarm sound is on a WAV file on my hard drive and when the alarm needs to be rung the macro goes to a hyperlink on the Excel spreadsheet and “presses” the link. The hyperlink is at cell A10.

    Sheets(“Monitor”).Range (“A10”).Select
    Selection.Hyperlinks (1).Follow NewWindow:=False, AddHistory:=True
    If I open the file directly using the macro then it opens up a media player to play the alarm which I do not want.

    Is there a way of calling and playing the alarm audio file and without opening up media player?
    Last edited by AliJay; 06-09-2010 at 03:22 AM.

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