Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
My code has these 3 lines to swap rows.
Rows(120).Value = Rows(z).Value Rows(z).Value = Rows(x).Value Rows(x).Value = Rows(120).Value Is this the only way to do it? Also, the formulas are destroyed when using this, and I need to retain them. Thanx ahead, Greg Carter |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Greg,
Try this Rows(120).Copy Rows(z).PasteSpecial Paste:=xlAll Application.CutCopyMode = False -- HTH Bob Phillips ... looking out across Poole Harbour to the Purbecks (remove nothere from the email address if mailing direct) "greg carter" wrote in message ... My code has these 3 lines to swap rows. Rows(120).Value = Rows(z).Value Rows(z).Value = Rows(x).Value Rows(x).Value = Rows(120).Value Is this the only way to do it? Also, the formulas are destroyed when using this, and I need to retain them. Thanx ahead, Greg Carter |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
colating multi rows of data into single rows - no to pivot tables! | Excel Worksheet Functions | |||
Auto extract data & inserts rows additional rows automatically | Excel Discussion (Misc queries) | |||
Enabling option „Format rows“ to hide/unhide rows using VBA-code? | Excel Discussion (Misc queries) | |||
Copy rows of data (eliminating blank rows) from fixed layout | Excel Discussion (Misc queries) | |||
Excel 2003 -Rows hidden. Scrolling unhides rows ! How do I stop th | Excel Discussion (Misc queries) |