LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,533
Default to adjust download

Hi

This macro should to it:

Sub RemoveHeadings()

LastRow = Range("A" & Rows.Count).End(xlUp).Row
HeaderBlock = 7
DataBlock = 49
TargetRow = HeaderBlock + DataBlock

Rows(TargetRow + 1).Resize(7).Delete

Do
TargetRow = TargetRow + DataBlock
Rows(TargetRow + 1).Resize(7).Delete
LastRow = LastRow - 7
Loop Until TargetRow LastRow
End Sub

Regards,
Per

"officegirl" skrev i meddelelsen
...
I am downloading huge reports from unix and after the original 7 lines of
heading I need to delete the repeating page headings (always 7 lines)the
data
is 49 lines
so I need the first 7 lines of heading than 49 lines of data, than delete
7
lines of heading , than I need 49 lines of data and this should repeat
until
the end of the worksheet that is sometimes ~30000 lines


 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
I need to adjust the date Irbe Excel Discussion (Misc queries) 2 April 30th 08 02:50 AM
items chosen to download are NEVER all there after download comple jwhitehurst New Users to Excel 3 November 9th 07 04:00 PM
How do I adjust a curve ? Mauro Charts and Charting in Excel 12 June 15th 07 06:35 PM
cells don't adjust boraguru Excel Discussion (Misc queries) 2 September 7th 05 03:11 PM
cells don't adjust boraguru Excel Discussion (Misc queries) 0 September 7th 05 01:05 AM


All times are GMT +1. The time now is 01:52 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"