HOW TO CREATE MACRO BUTTON IN EXCEL with function PLAY AUDIO

for Excel 2010


1, FILE > OPTIONS > CUSTOMIZE RIBBON > ENABLE DEVELOPER MENU
2, GO TO DEVELOPER MENU >> INSERT >>FORM BUTTON >> CREATE ON LIST AND ASSIGN MACRO
how_to_play_audio_from_exell_from_corect_time
3, Click new and then paste this code

Sub Start_Audio()

y = Range("H1").Value         'in this cell i have path to file to ???.mp3
x = ActiveCell.Value          'time is take from active cell and
                              'play audio from this time

Shell ("C:\Program Files\MPC-HC.1.6.6.6957.x64\mpc-hc64.exe /startpos " + x + " " + y)
End Sub

SOURCE

VBCODE

Facebook Comments

One comment on “HOW TO CREATE MACRO BUTTON IN EXCEL with function PLAY AUDIO

  1. Massage says:

    Massage

    I really enjoy the blog article.Much thanks again. Want more.

Comments are closed.