Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
copy all rows before empty row
Hi!
This macro works when I decide what cells to copy: Set sourceRange = mybook.Worksheets(1).Rows("1:200") But how do I write a macro that copies al the rows untill first empty row in the sheet? |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
copy all rows before empty row
Range("A1", Range("A1").End(xlDown)).EntireRow.Copy
Change both "A"s to the column you want to use to look for blank data in. -- Charles Chickering "A good example is twice the value of good advice." "Calle" wrote: Hi! This macro works when I decide what cells to copy: Set sourceRange = mybook.Worksheets(1).Rows("1:200") But how do I write a macro that copies al the rows untill first empty row in the sheet? |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
copy all rows before empty row
Thx, but this code copies the empty cells that has formulas in them.... Any
workaround? |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
copy all rows before empty row
Can you send me an example spreadsheet and a description of what you want to
happen? -- Charles Chickering "A good example is twice the value of good advice." "Calle" wrote: Thx, but this code copies the empty cells that has formulas in them.... Any workaround? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
copy every 3rd row to empty rows below | Excel Discussion (Misc queries) | |||
Copy cell contents in empty rows below it till any unempty row com | Excel Discussion (Misc queries) | |||
Clipboard empty but get cannot empty CB when trying to copy | Excel Worksheet Functions | |||
Delete Rows with Empty Cells with empty column 1 | Excel Programming | |||
How do I sort with empty rows between none empty rows? | Excel Worksheet Functions |