![]() |
row argument query...
Dear All, In my (recorded) macro there is this bit... Range("Y5:AB5").Select Selection.Copy Range("Y6").Select Range(Selection, ActiveCell.SpecialCells(xlLastCell)).Select ActiveSheet.Paste this copies the formulae down to the last active cell and pastes them...this is fine and is the only way I could think how to do it...but i only want to paste down as far as the number of rows in the adjacent "X" column next to the Range("Y5:AB5")... The practical difference is pasting down only 200 or so rows as opposed to the 3000 rows and therefore a considerable time/file size saving... ...I have tried to look up various solutions but I am struggling... Jaime (LVP!) -- jaimetimbrell ------------------------------------------------------------------------ jaimetimbrell's Profile: http://www.excelforum.com/member.php...o&userid=26162 View this thread: http://www.excelforum.com/showthread...hreadid=508365 |
row argument query...
your macro only copies copies and pastes one row!
|
row argument query...
Oh Sorry about that, !
is Column X fixed or does it vary in rows? |
All times are GMT +1. The time now is 06:21 AM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com