RedOctoberKnight
Board Regular
- Joined
- Nov 16, 2015
- Messages
- 150
- Office Version
- 2016
- Platform
- Windows
Good Morning,
I have the following code which copies and pastes from one workbook to another. It only pastes the values though and I'm unsure on how to write it so it pastes formatting too.
Any help would be much appreciated.
Thanks.
I have the following code which copies and pastes from one workbook to another. It only pastes the values though and I'm unsure on how to write it so it pastes formatting too.
VBA Code:
Public Sub Copy_Range_From_Truck_Schedules()
Application.Calculation = xlCalculationManual
Application.ScreenUpdating = False
Dim tsWorkbook As Workbook
Set tsWorkbook = Workbooks.Open(ThisWorkbook.Path & "\truckschedulesdualsides.xlsx")
With ThisWorkbook.ActiveSheet
.Range("A4:R200").Value = tsWorkbook.Worksheets(.Name).Range("A4:R200").Value
End With
tsWorkbook.Close False
Application.Calculation = xlCalculationAutomatic
Application.ScreenUpdating = True
End Sub
Any help would be much appreciated.
Thanks.