ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Can anyone tell me the proper code to copy a range... (https://www.excelbanter.com/excel-programming/385110-can-anyone-tell-me-proper-code-copy-range.html)

Tim Williams

Can anyone tell me the proper code to copy a range...
 
dim s as worksheet
set s=thisworkbook.sheets("othersheet")

thisworkbook.Range("A2:M2").copy _
s.cells(s.rows.count,1).end(xlup).offset(1,0)


--
Tim Williams
Palo Alto, CA


"Steel Works, Inc." wrote in message ...
Can anyone tell me the proper code to copy a range in one worksheet to the
first available empty row in another worksheet? Thanks!

CB





Steel Works, Inc.

Can anyone tell me the proper code to copy a range...
 
Can anyone tell me the proper code to copy a range in one worksheet to the
first available empty row in another worksheet? Thanks!

CB




All times are GMT +1. The time now is 03:24 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com