Educational Materials like Computer, engineering, software and Property , Entertainment: Copy and paste the data entered into a master data worksheet in a different workbook
Custom Search

Subscribe Now: Feed Icon

February 11, 2012

Copy and paste the data entered into a master data worksheet in a different workbook


Copy and paste the data entered into a master data worksheet in a different workbook

Sub CopyDataMacro()

Workbooks.Open "D:\test\MasterData.xlsx"

ThisWorkbook.Sheets("test1").Range(A11:K20").Copy
Workbooks("MasterData.xlsx").Sheets(   "test1").Cells(Rows.Count, 3).End(xlUp).Offset(1, 0).PasteSpecial Paste:=xlPasteValues
ThisWorkbook.Sheets("test1").Range(C5").Copy
Workbooks("MasterData.xlsx").Sheets(   "test1").Cells(Rows.Count, 1).End(xlUp).Offset(1, 0).PasteSpecial Paste:=xlPasteValues

ThisWorkbook.Sheets("test1").Range(C6").Copy
Workbooks("MasterData.xlsx").Sheets(   "test1").Cells(Rows.Count, 2).End(xlUp).Offset(1, 0).PasteSpecial Paste:=xlPasteValues

Workbooks("MasterData.xlsx").Save
Workbooks("MasterData.xlsx").Close

End Sub

0 comments:

Post a Comment

Follow by Email

Video Bar

Loading...

Followers

Educational Materials like Computer, engineering, software and Property , Entertainment

Recent Visitors

Active Search Results
Wink Bingo | Slots Tips | Football manager 2010 | blackjack free | Poker Stars
Submitdomainname.com