Hi,
I'm still a newby at vba. So please ha patience with me. I use Excel 2007.
Ok..... I have 200 excelsheets and each of them with 20 questions. Now i want to do a new excelsheet. With all the answers in it. But I dont want use copy and paste. For one Sheet , you see it below, there is no Problem. But how can the script do this with all of the 200 excelsheets? - again and again!
Sub import_answers()
'
'
' Keyboard Shortcut: Ctrl+Shift+M
'
Workbooks.Open Filename:="N:\trusts\Trusts\answers\D13.xlsx"
Range("B5").Select
Selection.Copy
Windows("answers_0.1.xlsx").Activate
Range("B3").Select
ActiveSheet.Paste
Windows("D3.xlsx").Activate
Range("B6").Select
Application.CutCopyMode = False
Selection.Copy
Windows("answers_0.1.xlsx").Activate
Range("C3").Select
ActiveSheet.Paste
Range("D3").Select
Windows("D13.xlsx").Activate
ActiveWindow.Close
End Sub
I hope you know the the solution for that Problem.
Thanks.
I'm still a newby at vba. So please ha patience with me. I use Excel 2007.
Ok..... I have 200 excelsheets and each of them with 20 questions. Now i want to do a new excelsheet. With all the answers in it. But I dont want use copy and paste. For one Sheet , you see it below, there is no Problem. But how can the script do this with all of the 200 excelsheets? - again and again!
Sub import_answers()
'
'
' Keyboard Shortcut: Ctrl+Shift+M
'
Workbooks.Open Filename:="N:\trusts\Trusts\answers\D13.xlsx"
Range("B5").Select
Selection.Copy
Windows("answers_0.1.xlsx").Activate
Range("B3").Select
ActiveSheet.Paste
Windows("D3.xlsx").Activate
Range("B6").Select
Application.CutCopyMode = False
Selection.Copy
Windows("answers_0.1.xlsx").Activate
Range("C3").Select
ActiveSheet.Paste
Range("D3").Select
Windows("D13.xlsx").Activate
ActiveWindow.Close
End Sub
I hope you know the the solution for that Problem.
Thanks.