Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 64
Default Copy non blank rows only

I'm working with Excel 2003. In a workbook I have Range A50:H51 and I need
to copy only the row that has data into another workbook (both rows could
have data or only one of the twol). The way my macro is running now, it
copies the entire range and will leave a blank row in the other workbook.

I am hoping someone can help with code to correct this problem.

Thanks!
--
Linda
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 64
Default Copy non blank rows only

The data Range A51:H52 has already been copied from another range to remove
formulas (Paste Special). I tried Auto Filter, Advanced Filter, etc.,
however, if row 51 is blank, I still get the blank row. In my original code,
I was sorting the data so the blank row would be at the bottom, however, as
it will not filter, or when copied to the other workbook and if I use
End/Down and it skips the blank row, I have to assume Excel sees something in
the cell.
--
Linda


"Don Guillett" wrote:

As ALWAYS, post your code for comments. You may want to use
datafilterautofilter on the non blankscopy/paste

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"mathel" wrote in message
...
I'm working with Excel 2003. In a workbook I have Range A50:H51 and I
need
to copy only the row that has data into another workbook (both rows could
have data or only one of the twol). The way my macro is running now, it
copies the entire range and will leave a blank row in the other workbook.

I am hoping someone can help with code to correct this problem.

Thanks!
--
Linda



Reply
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
Copy to filtered blank rows from another spreadsheet Juan Excel Discussion (Misc queries) 0 April 28th 10 07:59 PM
Copy several row headers to rows (blank) below for each header Rechie Excel Discussion (Misc queries) 1 October 26th 09 02:27 PM
Copy rows of data (eliminating blank rows) from fixed layout Sweepea Excel Discussion (Misc queries) 1 March 13th 07 11:05 PM
Copy data from above rows in cells are blank ir26121973 Excel Programming 5 August 31st 06 05:00 PM
Copy rows, but exclude blank rows Mary[_9_] Excel Programming 1 November 1st 05 07:21 AM


All times are GMT +1. The time now is 09:53 AM.

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

About Us

"It's about Microsoft Excel"