PC Review


Reply
Thread Tools Rate Thread

Delete certain rows to "merge" pages

 
 
mary
Guest
Posts: n/a
 
      25th Jul 2008
I have a report system that merges into Excel. If the report has multiple
pages however, each "page" is pasted into Excel instead of continuous rows of
data, e.g.:

Report Header

Data Header
Data
Data
Data
..
..
..

Run Date, Time, page 1

Report Header
Data Header
Data
Data
Data
..
..
..

Run Date, Time, page 2

I am trying to write a macro that will leave the first report header and
first data header so I can identify the report type, but that will delete the
"duplicate" information and the run date so that I don't have to do it
manually each time.
 
Reply With Quote
 
 
 
 
Wigi
Guest
Posts: n/a
 
      26th Jul 2008
Supposing you have a loop through the cells of column A, How can you
distinguish between Data and the other cells you want to delete?

What code do you have at the moment?

--
Wigi
http://www.wimgielis.be = Excel/VBA, soccer and music


"mary" wrote:

> I have a report system that merges into Excel. If the report has multiple
> pages however, each "page" is pasted into Excel instead of continuous rows of
> data, e.g.:
>
> Report Header
>
> Data Header
> Data
> Data
> Data
> .
> .
> .
>
> Run Date, Time, page 1
>
> Report Header
> Data Header
> Data
> Data
> Data
> .
> .
> .
>
> Run Date, Time, page 2
>
> I am trying to write a macro that will leave the first report header and
> first data header so I can identify the report type, but that will delete the
> "duplicate" information and the run date so that I don't have to do it
> manually each time.

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
delete rows if cell in row contains "a" or "o" or empty bartman1980 Microsoft Excel Programming 2 4th Nov 2007 08:20 PM
Look for cell containing "Initial" then if the next cell after equals "Final" then delete both rows. amorrison2006@googlemail.com Microsoft Excel Programming 3 28th Sep 2007 01:45 PM
Help: how to "merge" rows while summing some values stevels70@googlemail.com Microsoft Excel Discussion 3 15th Feb 2007 02:49 AM
How to "auto merge" 50 photos into 50 Word pages? =?Utf-8?B?Zm9jdXNtYW5rYw==?= Microsoft Word Document Management 1 30th Dec 2005 06:49 AM
How to delete rows when List toolbar's "delete" isnt highlighted? =?Utf-8?B?TGluZGE=?= Microsoft Excel Worksheet Functions 1 26th May 2005 08:39 PM


Features
 

Advertising
 

Newsgroups
 


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