Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
The following should work but it only copies cell A1 from the SSh (source) to
cell A1 on the DSh (destination). Sub MoveData() Dim SSh As Worksheet 'source sheet Dim DSh As Worksheet 'target sheet Dim LastRow As Long Dim CopyRange As String Set SSh = ActiveWorkbook.ActiveSheet Set DSh = Workbooks("CMS Register of ClaimsAuto").Worksheets("Summary") CopyRange = SSh.Range("A2:E" & Rows.count).End(xlUp).Copy DSh.Range("A" & LastRow + 1).PasteSpecial (xlPasteValues) End Sub Where did I go wrong? -- Traa Dy Liooar Jock |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Select range from a varaible | Excel Programming | |||
Hyperlink varaible substitution - How To | Excel Worksheet Functions | |||
Object varaible or With block variable not set? | Excel Programming | |||
assining a varaible to the value in another sheet. | Excel Programming | |||
Use varaible for worsheet name in a formule | Excel Programming |