Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi,
How could I use this code without the select?? Sheets("Recovered_Sheet1").Select Range("A10").Select Range(Selection, ActiveCell.SpecialCells(xlLastCell)).Copy Sheets("New Format").Select Range("A2").Select ActiveSheet.Paste Application.CutCopyMode = False |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Maybe...
Dim FirstCell as range dim LastCell as range dim RngToCopy as range with worksheets("recovered_sheet1") set firstcell = .range("a10") set lastcell = firstcell.cells.specialcells(xlcelltypelastcell) set rngtocopy = .range(firstcell,lastcell) end with rngtocopy.copy _ destination:=worksheets("new format").range("a2") application.cutcopymode = false damorrison wrote: Hi, How could I use this code without the select?? Sheets("Recovered_Sheet1").Select Range("A10").Select Range(Selection, ActiveCell.SpecialCells(xlLastCell)).Copy Sheets("New Format").Select Range("A2").Select ActiveSheet.Paste Application.CutCopyMode = False -- Dave Peterson |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Thank you very much
|
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Can't Copy and Paste or Paste Special between Excel Workbooks | Excel Discussion (Misc queries) | |||
Select cell, Copy it, Paste it, Return to Previous cell | Excel Discussion (Misc queries) | |||
Excel cut/Paste Problem: Year changes after data is copy and paste | Excel Discussion (Misc queries) | |||
select and paste | Excel Discussion (Misc queries) | |||
I cannot paste from one workbook to another. Copy works, paste do. | Excel Discussion (Misc queries) |