+ Reply to Thread
Results 1 to 2 of 2

VBA - Text String Activates Timestamp

  1. #1
    Registered User
    Join Date
    06-06-2014
    Posts
    16

    VBA - Text String Activates Timestamp

    Hello All,

    I am trying to find out whether it is possible for Microsoft Word to automatically & constantly replace a string of text ("new line") anytime it appears with a timestamp.

    More detailed question: I am currently using a software called Dragon Naturally Speaking (dictation software) to collect data in the field. Each data line consists of two unique bands plus a timestamp. Below are 3 sample data lines:

    MRYR MMO, 09:17:30 AM,
    MBR MRYR, 09:17:34 AM,
    MBD MMO, 09:17:39 AM,

    Currently, Dragon runs a macro that replaces "new line" with a ", [timestamp],". For example, we would speak into the microphone, "MRYR MMO new line" for the first line. The macro in dragon is very fickle and slow, making data collection difficult & problematic. The computer recording the data is not in front of us so we don't recognize the problem until we return to the lab.

    I was hoping that instead of using the Dragon macro, I could instead write a script in VBA that could do the following: 1) anytime it saw the text "new line" it would replace it with a timestamp and 2) it would run constantly. Therefore, I would still say into the microphone "MRYR MMO new line" and in word it would briefly appear as "MRYR MMO new line". However, the VBA script would immediately recognize "new line" and replace with it ", [timestamp],".

    This may not make any sense so please ask questions. Any help would be greatly appreciated. Thank you!

  2. #2
    Forum Expert macropod's Avatar
    Join Date
    12-22-2011
    Location
    Canberra, Australia
    MS-Off Ver
    Word, Excel & Powerpoint 2003 & 2010
    Posts
    3,726

    Re: VBA - Text String Activates Timestamp

    What you're asking is impractical, if not impossible. Your macro would most likely never get the chance to intercept whatever Dragon Naturally Speaking is doing to add the timestamp and, once it's running, wouldn't be able to continue doing so and at the same time allow Dragon Naturally Speaking to do its thing.
    Cheers,
    Paul Edstein
    [Fmr MS MVP - Word]

+ 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. Replies: 2
    Last Post: 05-14-2015, 01:30 PM
  2. [SOLVED] Find partial text string within another text string return original text into cell.
    By mikey42979 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 06-17-2013, 02:58 PM
  3. text to timestamp conversion
    By nivn in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-29-2013, 09:05 AM
  4. Convert text to hours/timestamp
    By Daniel86 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-12-2012, 06:06 PM

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