+ Reply to Thread
Results 1 to 3 of 3

Playing specific WAV files with a command button using a combobox value

  1. #1
    Registered User
    Join Date
    12-07-2012
    Location
    Merksem, Belgium
    MS-Off Ver
    Excel 2010
    Posts
    2

    Playing specific WAV files with a command button using a combobox value

    Hello Forum, I would like to have a userform with a combobox and a commandbutton which would play a specific WAV file (= city name) depending on the city name selected in the combobox. I have a code which works fine assigned to a commandbutton on an excel sheet using the value of a specific cell :


    Please Login or Register  to view this content.
    However this is not feasible when 3000 city names are involved.

    Does anyone know the right code/syntax to use the combobox value as a variable for the WAV file name, something like : (not working)

    Please Login or Register  to view this content.
    Thanks in advance

  2. #2
    Forum Expert
    Join Date
    06-25-2009
    Location
    Sofia, Bulgaria, EU
    MS-Off Ver
    Excel 2003-2013
    Posts
    1,290

    Re: Playing specific WAV files with a command button using a combobox value

    Hi,
    Please Login or Register  to view this content.
    However it will not work if the wav name is not the same as the city name (combobox value), e.g. "Merksem (Antwerpen)". You need to parse the combobox1 value, but I'm not able to give any advise as I don't know all possibilities
    If you are pleased with a member's answer then use the Star icon to rate it.

  3. #3
    Registered User
    Join Date
    12-07-2012
    Location
    Merksem, Belgium
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Playing specific WAV files with a command button using a combobox value

    Hi Buran, thanks for yr quick reply. Code works fine now ! (the devil is in the detail as always )

    Fyg wav names match with city names.

    Rgds
    Marc

+ 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