ziad alsayed
Well-known Member
- Joined
- Jul 17, 2010
- Messages
- 665
dear all
i have 2 workbooks, the first is named TopTen1, which i am working in. the second is named TopTen2.
need to open the TopTen2 Workbook from the TopTen1 Workbook and Everytime copy the "Sheet1" To the TopTen1 Workbook and pur at the end and name it TopTen2
how can i write the below Code in a Better Way
Appreciate any help
i have 2 workbooks, the first is named TopTen1, which i am working in. the second is named TopTen2.
need to open the TopTen2 Workbook from the TopTen1 Workbook and Everytime copy the "Sheet1" To the TopTen1 Workbook and pur at the end and name it TopTen2
how can i write the below Code in a Better Way
Code:
Workbooks.Open Filename:="C:\Users\dv7\Desktop\TopTen2.xlsm"
Sheets("Sheet1").Select
Sheets("Sheet1").Copy After:=Workbooks("TopTen1macro.xlsm").Sheets(6)
Sheets("Sheet1").Select
Sheets("Sheet1").Name = "Topten2"
Range("B19").Select
Appreciate any help