Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I've got a workbook where I'm using code to copy rows of data from one sheet
to a recap sheet if a condition is met (all rows with "Y" in one column). The data is being copied to sheet two, but blank rows are being left in between rows where the "Y" condition is not met. My current code is: 'have x start at row 2 x = 2 'loop until a blank row is found Do While Sheets("Jan 09").Cells(x, 1).Value < "" If Sheets("Jan 09").Cells(x, 11).Value = "Y" Then 'this will put the value of column 1 "Payable To" in the recap sheet Sheets("2009 Recap").Select Cells(x, 1).Value = Sheets("Jan 09").Cells(x, 1) End If 'increase the value of x by 1 to act on the next row x = x + 1 Loop all assistance is appreciated! |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to remove rows with the first cell blank | Excel Programming | |||
Need macro to remove blank rows | Excel Programming | |||
formula to remove blank rows | Excel Discussion (Misc queries) | |||
remove or hide blank rows | Excel Discussion (Misc queries) | |||
How do I remove blank rows in Excel? | Excel Discussion (Misc queries) |