+ Reply to Thread
Results 1 to 8 of 8

How to retrieve particular text string from complex paragraph by Macro ?

  1. #1
    Forum Contributor
    Join Date
    06-08-2012
    Location
    BD
    MS-Off Ver
    Microsoft Office 2016
    Posts
    633

    How to retrieve particular text string from complex paragraph by Macro ?

    Hi, I have two sheets (input & output). Here I will be past complex text paragraph in the sheet “Input “ . I need a macro that will give me the results like “output” sheet . please check the attached excel workbook , in that I have color marked which text need to be taken from input sheet to Output sheet.
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,518

    Re: How to retrieve particular text string from complex paragraph by Macro ?

    try
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by jindon; 06-01-2013 at 03:31 AM. Reason: Changed cell format (date)

  3. #3
    Forum Contributor
    Join Date
    10-13-2012
    Location
    Southern California
    MS-Off Ver
    Excel 2007
    Posts
    401

    Re: How to retrieve particular text string from complex paragraph by Macro ?

    if jindon's clever code doesn't work (I'm sure it does) here's my take on it:

    data modified.xlsm

  4. #4
    Forum Contributor
    Join Date
    06-08-2012
    Location
    BD
    MS-Off Ver
    Microsoft Office 2016
    Posts
    633

    Re: How to retrieve particular text string from complex paragraph by Macro ?

    Hi, jindon
    It works perfectly. You saved my time. before that I would take many hours to prepare the same report But now only a moments just button press time which is outstanding speed. Thanks for your valuable time .

  5. #5
    Forum Contributor
    Join Date
    06-08-2012
    Location
    BD
    MS-Off Ver
    Microsoft Office 2016
    Posts
    633

    Re: How to retrieve particular text string from complex paragraph by Macro ?

    Hi, Ed_Collins,
    Your code also working fine , but one problem that is “Duration” column is not working as my requirements , (it will be actually [D2= Now()- C2 ] go down until blank ), & the cell format should be (D:HH:MM)

  6. #6
    Forum Contributor
    Join Date
    06-08-2012
    Location
    BD
    MS-Off Ver
    Microsoft Office 2016
    Posts
    633

    Re: How to retrieve particular text string from complex paragraph by Macro ?

    Hi, jindon
    Need little bit macro modification as of our “ input” data having some changed (it is happened due to our linux server was updated recently)
    (before “END” there is one space) base on this logic your code what i am currently using is working fine.
    EXTERNAL ALARM
    TOWER_LIGHT

    END


    please add one more logic which having no space also like below, there is no space before "END"
    EXTERNAL ALARM
    TOWER_LIGHT
    END
    Last edited by nur2544; 06-05-2013 at 11:37 AM.

  7. #7
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,518

    Re: How to retrieve particular text string from complex paragraph by Macro ?

    Change
    Please Login or Register  to view this content.
    to
    Please Login or Register  to view this content.

  8. #8
    Forum Contributor
    Join Date
    06-08-2012
    Location
    BD
    MS-Off Ver
    Microsoft Office 2016
    Posts
    633

    Re: How to retrieve particular text string from complex paragraph by Macro ?

    Characteristic of your beautiful VB scripts
    Size: Very small
    Speed: Extremely fast
    Logic: Superb
    Error: 0%
    Remarks: Just Outstanding

+ 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