Results 1 to 3 of 3
  1. #1
    redbull's Avatar
    redbull is offline Competent Performer
    Windows XP Access 2010 32bit
    Join Date
    Mar 2012
    Location
    Missouri
    Posts
    480

    How to pull two strings from a cell, when a specific template is used.


    I'm struggling with the scenario below...

    A certain cell on a spreadsheet uses the following format
    "<* Description: Text I want>< Date:MM/DD/YYYY *>"
    I'm sick as a dog and trying to figure this out, but every approach I've taken just seems backwards and doesn't seem to work. I've tried pulling everything after the first : and before the first >... I don't know I feel like I'm going after this the wrong way. Any suggestions?


    This is the result I'm looking for.

    DescText = "Text I want"
    DateNeeded = "MM/DD/YYYY"
    If I can get this, I can then dump those variables where they are needed.

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    8,424
    I = instr(cell,">")
    STxt=mid(cell,17,I-1)
    vDate=mid(cell,len(cell)-10,10)

  3. #3
    redbull's Avatar
    redbull is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Mar 2012
    Location
    Missouri
    Posts
    480
    You truly are the terminator. I appreciate it. I don't know what's wrong with me today... with a gun to my head I still wouldn't have gotten this.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 4
    Last Post: 09-19-2016, 05:02 PM
  2. Replies: 1
    Last Post: 11-20-2014, 08:34 AM
  3. Replies: 1
    Last Post: 10-28-2013, 12:32 PM
  4. Replies: 6
    Last Post: 09-10-2013, 08:37 AM
  5. Replies: 1
    Last Post: 07-12-2013, 01:48 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums - Senior Forums