Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
HI all
I need to copy and paste a range of cells from one worksheet to another. The first cell to be copied will always be A3. The last cell will vary depending on how many rows of data are entered. The last entry, however will always be in column S - only the row will vary. I've tried a number of things, to no avail...can anyone help? Thanks. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I've monkeyed with this, too... got the solution by recording what I
would do on the sheet to make this happen... This should work for you Range("A3:S3").Select Range(Selection, Selection.End(xlDown)).Select Note: This will only work when the data in column A is continuous to the end of the series (i.e., there are no blank cells between A3 and the last cell in column A with data). Hope that helps! |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
It does the job very nicely. Thanks!!!!!
|
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
If your data's not continuous but you are going to the last row in a column
you could use this to copy the range: range(cells(3,1),cells(65536,19).end(xlup)).copy Rob " wrote: I've monkeyed with this, too... got the solution by recording what I would do on the sheet to make this happen... This should work for you Range("A3:S3").Select Range(Selection, Selection.End(xlDown)).Select Note: This will only work when the data in column A is continuous to the end of the series (i.e., there are no blank cells between A3 and the last cell in column A with data). Hope that helps! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to use macros to copy a range of cells which can exclude some cells which I didn't want to be copied? | Excel Worksheet Functions | |||
Copy Range of Cells in Same Row | Excel Discussion (Misc queries) | |||
Copy cells into range of cells until cell change | Excel Worksheet Functions | |||
copy range of cells using VB | Excel Programming | |||
Copy a formula to a range of cells via VB6 using .Range(Cells(row,col), Cells(row,col)).Formula= statement | Excel Programming |