Home |
Search |
Today's Posts |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Or, a bit more efficiently:
Const csFILEPATH As String = _ "S:\Stardex Compliance\Registers\Stardex Breach Register.xls" Dim rSource As Range With ActiveWorkbook.Worksheets("Register") Set rSource = .Cells(.Rows.Count, 1).End(xlUp) End With With Workbooks.Open(csFILEPATH) With .Sheets("Register") rSource.EntireRow.Copy _ Destination:=.Cells(.Rows.Count, 1).End(xlUp).Offset(1, 0) End With .Close SaveChanges:=True End With In article , JE McGimpsey wrote: One way: Const csFILEPATH As String = _ "S:\Stardex Compliance\Registers\Stardex Breach Register.xls" Dim wbDest As Workbook Dim rDest As Range Dim rSource As Range With ActiveWorkbook.Worksheets("Register") Set rSource = .Cells(.Rows.Count, 1).End(xlUp) End With Set wbDest = Workbooks.Open(csFILEPATH) With wbDest.Sheets("Register") rSource.EntireRow.Copy _ Destination:=.Cells(.Rows.Count, 1).End(xlUp).Offset(1, 0) End With wbDest.Close SaveChanges:=True |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
cut and paste specific record on same worksheet | Excel Programming | |||
ExcelVBA Paste record In next empty next Row | Excel Programming | |||
Copy and paste from last record at bottom of column | New Users to Excel | |||
record macro - copy absolute, paste relative | Excel Programming | |||
how to count/sum by function/macro to get the number of record to do copy/paste in macro | Excel Programming |