MichaelRSnow
Active Member
- Joined
- Aug 3, 2010
- Messages
- 397
I have an .xml file which has 1500 lines of code, I need to amend a field on various lines (500 or so).
is it possibel to write VB code to Find a line, then find a section of code on that line and replace it?
i.e. each
code appears on a new line
I was hoping there is a way that you can run a mcaro in xls to find the code (above) then search the line to replace the what value with the with value
FIND > REPLACE WHAT > WITH WHAT
textbox8="94172" > MGProductLinkedPrimeFlexAccountInd="Y" > MGProductLinkedPrimeFlexAccountInd="N"
textbox8="94173" > MGProductLinkedPrimeFlexAccountInd="Y" > MGProductLinkedPrimeFlexAccountInd="N"
textbox8="94174" > MGProductLinkedPrimeFlexAccountInd="Y" > MGProductLinkedPrimeFlexAccountInd="N"
textbox8="94175" > MGProductLinkedPrimeFlexAccountInd="Y" > MGProductLinkedPrimeFlexAccountInd="N"
textbox8="94180" > MGProductLinkedPrimeFlexAccountInd="Y" > MGProductLinkedPrimeFlexAccountInd="N"
Any help will be much appreciated?
is it possibel to write VB code to Find a line, then find a section of code on that line and replace it?
i.e. each
Code:
textbox8="12345"
I was hoping there is a way that you can run a mcaro in xls to find the code (above) then search the line to replace the what value with the with value
FIND > REPLACE WHAT > WITH WHAT
textbox8="94172" > MGProductLinkedPrimeFlexAccountInd="Y" > MGProductLinkedPrimeFlexAccountInd="N"
textbox8="94173" > MGProductLinkedPrimeFlexAccountInd="Y" > MGProductLinkedPrimeFlexAccountInd="N"
textbox8="94174" > MGProductLinkedPrimeFlexAccountInd="Y" > MGProductLinkedPrimeFlexAccountInd="N"
textbox8="94175" > MGProductLinkedPrimeFlexAccountInd="Y" > MGProductLinkedPrimeFlexAccountInd="N"
textbox8="94180" > MGProductLinkedPrimeFlexAccountInd="Y" > MGProductLinkedPrimeFlexAccountInd="N"
Any help will be much appreciated?