+ Reply to Thread
Results 1 to 3 of 3

Retrieve substring

  1. #1
    Registered User
    Join Date
    04-08-2012
    Location
    Sydney
    MS-Off Ver
    Excel 2007
    Posts
    31

    Retrieve substring

    String 1: ttt.hhh.jjjjkkk.jhklll.juhkkk.

    String 2: hhh.jjjjj.uuiok.oiu


    From the above two strings I need to retrieve hhh and jjjj between the first two dots in the string using vba. Please help

  2. #2
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,467

    Re: Retrieve substring

    Hi there,

    See if the attached workbook does what you need - it uses the following code:

    Please Login or Register  to view this content.

    Hope this helps - please let me know how you get on.

    Regards,

    Greg M
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    04-08-2012
    Location
    Sydney
    MS-Off Ver
    Excel 2007
    Posts
    31

    Re: Retrieve substring

    Thank you. I will try this out

+ 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: 8
    Last Post: 03-09-2018, 11:39 AM
  2. [SOLVED] Substring from right
    By freddie_mac in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-16-2016, 05:47 AM
  3. Macro to search cells for substring and replace contents of cell if substring is found
    By robbyvegas in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-31-2015, 06:40 AM
  4. Substring expression help
    By sbell1234 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-21-2015, 02:38 PM
  5. Retrieve the Text which may have prefix/suffix in the database & retrieve the highestvalue
    By Sivashanmugam in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-10-2015, 12:58 PM
  6. Search substring within range, report the substring found
    By Brooke1578 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-20-2012, 03:56 PM
  7. [SOLVED] Extract Substring, then Ignore that Substring, while collecting data from Other substrings
    By Sameki121 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-17-2012, 05:21 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