+ Reply to Thread
Results 1 to 2 of 2

VBA Macro to Search multiple TEXTs

  1. #1
    Registered User
    Join Date
    06-25-2017
    Location
    PHOENIX
    MS-Off Ver
    OFFICE 2010
    Posts
    3

    VBA Macro to Search multiple TEXTs

    Hi,
    I have a big data file with * as field separator and #$# as line Breaker
    1. It will read Policy number SAY V009876C880 from an excel file say (a.xls).
    2. Then Search that policynumber from Data file.
    3 If found then it will search another text 10 lines above to that policy number Line
    4.Again it will search another text 20 lines below to that policy number Line
    5 Then write the entire searched lines in a new excel file
    6. Finally it pick next policy number from A.XLS and repeat steps.

    First Search policy number -> Then search a text 10 lines above to that policy number -> Again Search another text 20 lines below to that policy number line.
    Finally insert those lines in a separate excel file with policy number

    Regards,
    Byomakesh

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

    Re: VBA Macro to Search multiple TEXTs

    Quote Originally Posted by byomakesh View Post
    I have a big data file with * as field separator and #$# as line Breaker
    Is it a Text file?


    Quote Originally Posted by byomakesh View Post
    1. It will read Policy number SAY V009876C880 from an excel file say (a.xls).
    Is the policy number "V009876C880" known already?


    Attach a sample workbook/Text file. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

+ 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. Search for several texts and return a spesific text
    By mariur89 in forum Excel General
    Replies: 2
    Last Post: 11-24-2014, 07:37 PM
  2. Search for multiple texts in cell, return specific text
    By mariur89 in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 11-24-2014, 06:43 PM
  3. How to search for occurrence of multiple texts in same row/cell
    By coolfundaz in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-13-2014, 01:12 AM
  4. Search the text in 3rd cell by using texts in 2 cells
    By Shinaj in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-09-2014, 08:08 AM
  5. Macro to search through button texts and replace
    By sm9748 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-21-2013, 10:35 AM
  6. Search single row range for multiple texts and return "blah" Excel 2003
    By ashleyd in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-09-2013, 03:36 PM
  7. find for any of some search texts within a text
    By xirx in forum Excel General
    Replies: 2
    Last Post: 06-15-2005, 01:05 PM

Tags for this Thread

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