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
Setting Folder Permission in Windows XP - VB Script
Exchange 2010 resource mailbox for meeting room
iPhone jailbreak now legal, what's the safest?
SNMP bandwdith monitor on Fortigate 200A
added a function to webservice. Why can't i see it by intellesense on the client
Exchange 2010 Antivirus Options
Internet Browser disabled - message is "Hyper Bar 1"
window 7 OS: blank (black) screen only, as it logs in
Where is the Default Printer set in Crystal Reports?
Oracle qry on system tables