Microsoft
Software
Hardware
Network
Question : Copy and paste data from different workbooks
Hi Experts,
I need experts help to create a VBA code to copy(WB1) and paste(WB2) data from 2 different workbooks.
Workbook1(Copy)
Workbook Name: Detail Overtime
Sheet name: Data
Range to copy: B25:R42
Workbook2(Paste)
Workbook Name: Detail Report
Sheet name: Overtime
Range to paste: B3:R20
Both files are sitting in the same network folder which is \\bc01\Main\Data\Report. I’ll run this code in workbook2.
Hope Experts could help me to create this feature.
Answer : Copy and paste data from different workbooks
Got it.
Please change the line
wb1.Sheets("Data").Range("
B25:R42").
Copy _
wb2.Sheets("Overtime").Ran
ge("B3:R20
")
To
wb1.Sheets("Data").Range("
B25:R42").
Copy
wb2.Sheets("Overtime").Ran
ge("B3:R20
").PasteSp
ecial xlPasteValues
Random Solutions
What are major differences between VB.NET and C#.NET?
map with push pins
Making a Button on a Form Visible After Checking the Text Property of a ComboBox on the Form
Symantec Endpoint Protection - SID 23615 HTTPS Tidserv Request 2 Detected
How do I charge for a job?
Cisco 2950 Vlan for Voice
Access Report Ribbon
Continue to next part of script w/o having to close command prompt window
Crystal Report Server -- Free Named Users ?
Email an attachment in C# Windows application