Does anyone know how to remove lines of text from word that match certain criteria? Either by using a Macro or in VB6?
The scenario is that an application at work produces items of work for my colleagues in the form of a list of information. They cut & paste this list into Word and then print the information, usually about four pages long. The thing is that a lot of the information is useless to them and the only parts they need would fit onto 1 sheet of paper. To get around this they have been manually removing the lines in Word before they print it out. They have targets to reach and this way is taking a lot of time. I would like to produce a Macro to do this for them. An example of the information is below:
WI_OUTPOST=RZ30 6AB
WI_OUTREFNO=1023921428368
WI_OUTFINALBILL=
WI_OUTFRWDNUMBER=<missing>
I would like the Macro or VB code to remove the lines that had no info i.e. WI_OUTFINALBILL= or WI_OUTFRWDNUMBER=<missing>
If anyone has any ideas I'd be grateful. I've tried using Find Replace but to no avail.
Thanks in Advance.
Marc
The scenario is that an application at work produces items of work for my colleagues in the form of a list of information. They cut & paste this list into Word and then print the information, usually about four pages long. The thing is that a lot of the information is useless to them and the only parts they need would fit onto 1 sheet of paper. To get around this they have been manually removing the lines in Word before they print it out. They have targets to reach and this way is taking a lot of time. I would like to produce a Macro to do this for them. An example of the information is below:
WI_OUTPOST=RZ30 6AB
WI_OUTREFNO=1023921428368
WI_OUTFINALBILL=
WI_OUTFRWDNUMBER=<missing>
I would like the Macro or VB code to remove the lines that had no info i.e. WI_OUTFINALBILL= or WI_OUTFRWDNUMBER=<missing>
If anyone has any ideas I'd be grateful. I've tried using Find Replace but to no avail.
Thanks in Advance.
Marc