Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Tom,
Thank you once again. Cheers, Sam Tom Ogilvy wrote: Forgot to qualify Columns. Sub CopyLast() Dim r1 as Range, r2 as Range Dim sh as worksheet for each sh in worksheets(Array("sheet1", "sheet3", "sheet5")) set r1 = sh.Columns(1).specialCells(xlConstants,xlNumbers). Areas(1) set r1 = r1(r1.count) if isempty(r1(1,2)) then set r2 = r1 else set r2 = r1.end(xltoRight) end if Range(r1,r2).Copy r1(2) Next sh End Sub -- Message posted via OfficeKB.com http://www.officekb.com/Uwe/Forums.a...mming/200709/1 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How copy none excel data & paste in 2007 without overwriting data | Excel Discussion (Misc queries) | |||
Copy and paste - filtered data | Excel Discussion (Misc queries) | |||
Copy and Paste data | Excel Programming | |||
filted data, copy and paste a col. puts data in wrong row how fix | New Users to Excel | |||
Excel cut/Paste Problem: Year changes after data is copy and paste | Excel Discussion (Misc queries) |