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
backup multiple DBs in script
red ant
not seeing auto-recover version of a force-closed excel (2007) document
how to truncate the transaction logs in exchange 2010 after NT backup
I need to query each group in an OU in the Root Domain and get the group names that has exact identical users.
How to get an USB speaker to work with Eee PC 900 Xandros Linux
Split String in C#
Need help with important safety precautions!
Add Mirror Greyed Out
Can't access Exchange 2003 OWA from Internet