Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have some code that removes data from one sheet and pastes it to another.
The format has changed since i first created it and now involves merged cells. The code below would copy the entire row of the active cell and paste it in the last row of another sheet, then go back to the original sheet and delete the now empty row. My problem is the Active cell is now merged and contains 3 cells. When I run the code, it only deletes the first row but should include the 2 rows beneath it as well. ActiveCell.EntireRow.Copy Sheets("Backloaded Equipment").Select Range("B2").End(xlDown).Select ActiveCell.Offset(1, -1).Select ActiveSheet.Paste Sheets("Onboard CPF ").Select ActiveCell.EntireRow.Delete |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Copy paste non merged to merged cells | Excel Worksheet Functions | |||
How can I sort an Excel Doc containing merged & non-merged cells? | Excel Discussion (Misc queries) | |||
Autofit Merged cell Code is changing the format of my merged cells | Excel Discussion (Misc queries) | |||
how do i link merged cells to a merged cell in another worksheet. | Excel Worksheet Functions | |||
Sorting merged cellsHow do I sort merged cells not identically siz | Excel Worksheet Functions |