Delete unwanted TEXT rows while importing data in the form of a text file from a mainframe computer

bigbubba1369

New Member
Joined
Apr 4, 2013
Messages
1
I frequently run a report on our mainframe computer that get delivered to me via email in a .TXT file. The file is multiple pages, and each page has the same header and footer type information: Report Title Date Page numbers column headers summary stats at the bottom of the last page, etc. I have no problems parsing the actual date, but it is a real chore deleting the rows of unwanted data after doing a sort on the entire file to group items together. I would like to do the actual deleting with VBA code. Any suggestions; Please HELP!!!<o:p></o:p>
 
Last edited by a moderator:

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
try recording your actions and reviewing the code.

In the instance of deleting rows, look for common items where you can use the filter to mass delete in one hit. Even if there is NOT an identifier, you could run an extra column down the side that identifies the rows you want to delete. Something to consider.
 
Upvote 0

Forum statistics

Threads
1,214,944
Messages
6,122,392
Members
449,081
Latest member
JAMES KECULAH

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top