+ Reply to Thread
Results 1 to 9 of 9

VBA for microphone recording code test

  1. #1
    Registered User
    Join Date
    02-17-2015
    Location
    Philippines
    MS-Off Ver
    2007
    Posts
    89

    VBA for microphone recording code test

    Hi

    Ive been looking for a way to record using excel with the computers microphone. I came across this VBA code using google search but I have no idea how to link to a button would anyone be kind enough to try it and check it works please?! if it does work, is it possible to add visualisation like show soundwaves?!

    thanks



    Please Login or Register  to view this content.
    Last edited by FDibbins; 02-27-2017 at 02:59 AM. Reason: Title change

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,604

    Re: voice recording

    2. Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Click on Edit to open your thread, then highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here

    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)
    Last edited by protonLeah; 02-25-2017 at 02:40 PM.
    Ben Van Johnson

  3. #3
    Valued Forum Contributor Maudibe's Avatar
    Join Date
    12-21-2016
    Location
    USA
    MS-Off Ver
    2010-2013
    Posts
    326

    Re: VBA for microphone recording code test

    Micbrook,

    The code works great! But you need to correct one error. The line just prior to the first routine, "TestRecording" is missing an "=" sign.

    Please Login or Register  to view this content.
    Now, place an active X button on you sheet > right click it and left click View Code. In the button's click routine, add the line highlighted in blue

    Please Login or Register  to view this content.
    The button will initiate the code.

    HTH,
    Maud

  4. #4
    Registered User
    Join Date
    02-17-2015
    Location
    Philippines
    MS-Off Ver
    2007
    Posts
    89

    Re: VBA for microphone recording code test

    Thanks Maud however I still cant get it to work

  5. #5
    Registered User
    Join Date
    02-17-2015
    Location
    Philippines
    MS-Off Ver
    2007
    Posts
    89

    Re: VBA for microphone recording code test

    alansidman the title has been changed since proton replied, is it still not sufficient?!

  6. #6
    Registered User
    Join Date
    08-09-2015
    Location
    CzR
    MS-Off Ver
    MS Office 2013
    Posts
    41

    Re: VBA for microphone recording code test

    I randomly looked on your code and chosen one example. Your subroutine

    Please Login or Register  to view this content.
    Can possibly simplified down to:
    Please Login or Register  to view this content.
    What do you think?
    Last edited by JBeaucaire; 03-01-2017 at 05:07 PM. Reason: Changed the tone of this post without changing the content

  7. #7
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,907

    Re: VBA for microphone recording code test

    alansidman the title has been changed since proton replied, is it still not sufficient?!
    Carefully read Post#2 from protonLeah and you'll know why.
    Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
    You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.

  8. #8
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: VBA for microphone recording code test

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Click on Edit to open your thread, then highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here

    (I have added them for you - this time )
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  9. #9
    Valued Forum Contributor Maudibe's Avatar
    Join Date
    12-21-2016
    Location
    USA
    MS-Off Ver
    2010-2013
    Posts
    326

    Re: VBA for microphone recording code test

    Micbrook,

    "C:\Users\benny\Documents\test.wav"

    If this is not your path, please change it so it points to a sound file on your system.

    Maud

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. voice command to run a vba code
    By HaroonSid in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-30-2016, 09:15 AM
  2. Session Recording (Login info recording)
    By cvishu in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-13-2014, 04:10 PM
  3. Message Box Voice
    By fervorking in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-27-2011, 02:33 PM
  4. [SOLVED] How do I make the Stop Recording bar pop up when recording macros
    By J in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-10-2006, 04:50 PM
  5. [SOLVED] What Happened to Voice Messages?
    By TraceeK in forum Excel General
    Replies: 1
    Last Post: 11-09-2005, 08:35 PM
  6. Voice Recognition in Excel
    By Spankit115 in forum Excel General
    Replies: 1
    Last Post: 07-19-2005, 09:05 AM
  7. [SOLVED] annoying voice
    By Harry Dolol in forum Excel General
    Replies: 1
    Last Post: 03-14-2005, 06:06 AM

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