none
VBA code to copy data from text file after a particular string is identified and paste the data to other text file RRS feed

  • Question

  • Hi I am new to VBA. I wrote a vba code to copy data from a text file after a particular string is identified. I used "instr" for it but i could not come out with the same properly . Can anyone help me with this ?? . Thank you in Advance.
    Sunday, May 22, 2016 3:50 AM

All replies

  • What is the relationship of the data that you want to extract from the text file to the string in question?

    Does the string appear more than once in the text file and if so what do you want to do about the subsequent occurrences?


    Graham Mayor - Word MVP
    www.gmayor.com

    Sunday, May 22, 2016 11:41 AM
  • Can you provide a sample of the input text file and what you want the new text file to look like?
    Sunday, May 22, 2016 12:03 PM