Rafael Alvares Tubero
New Member
- Joined
- Mar 18, 2011
- Messages
- 45
Guys,
I don't understand why it is not working.
Workbooks("C:\job.xls").Activate
Sheets("Report").Select
Range("A1:H1").Select
Selection.Copy
Workbooks.Open ("C:\FX.xls")
Sheets.Add.Name = "Exchange"
Range("A1").Select
Selection.Paste
Columns("A:A").ColumnWidth = 16
Columns("B:B").ColumnWidth = 23
Columns("C:C").ColumnWidth = 23
Columns("D:D").ColumnWidth = 23
Columns("E:E").ColumnWidth = 15
Columns("F:F").ColumnWidth = 15
Columns("G:G").ColumnWidth = 24
Columns("H:H").NumberFormat = "m/d/yyyy"
The code above doesn't work. it stops at red line. Even if I change to "Activesheet.paste" it doesn't work.
May you guys help me?
Thanks a lot,
I don't understand why it is not working.
Workbooks("C:\job.xls").Activate
Sheets("Report").Select
Range("A1:H1").Select
Selection.Copy
Workbooks.Open ("C:\FX.xls")
Sheets.Add.Name = "Exchange"
Range("A1").Select
Selection.Paste
Columns("A:A").ColumnWidth = 16
Columns("B:B").ColumnWidth = 23
Columns("C:C").ColumnWidth = 23
Columns("D:D").ColumnWidth = 23
Columns("E:E").ColumnWidth = 15
Columns("F:F").ColumnWidth = 15
Columns("G:G").ColumnWidth = 24
Columns("H:H").NumberFormat = "m/d/yyyy"
The code above doesn't work. it stops at red line. Even if I change to "Activesheet.paste" it doesn't work.
May you guys help me?
Thanks a lot,