LightningBolt
New Member
- Joined
- Nov 10, 2011
- Messages
- 43
Hey,
First time posting here and I'm hoping somebody can be of some help. What I'm looking to do is above my excel skills at the moment.
I've got 200 odd workbooks that are excel versions of system reports. What I want to do is to take data from each workbook and paste it into a brand new "master" workbook so that I can run pivots off it. I tried to record a macro to do this as follows:
1) First I copy the data I want from each workbook that I want copied in (lets call it Workbook 1)
2) I then select "Record Macro" and pasted it into Workbook Master.
3) I then close Workbook 1 and finish recording.
4) I open up Workbook 2 and select the data again I want copied and try to run the macro but an error message shows up.
Ideally the macro could do the following in workbook 1 (i.e. the open workbook)
1) Select and copy all data in the rows from Cell A9 (Cell A8 always has the following text "Opening Balance" to the row just before a cell in Column A says "Closing Balance") - Some reports have maybe 10 rows of data, others could have 50 rows of data.
2) The data selected will be pasted into the Master Workbook in cell A2.
3) Workbook 1 will then close.
4) When I then open Workbook 2 I would like addiitonal data to be pasted in the next empty row.
C
an anybody please advise?
Many thanks!
First time posting here and I'm hoping somebody can be of some help. What I'm looking to do is above my excel skills at the moment.
I've got 200 odd workbooks that are excel versions of system reports. What I want to do is to take data from each workbook and paste it into a brand new "master" workbook so that I can run pivots off it. I tried to record a macro to do this as follows:
1) First I copy the data I want from each workbook that I want copied in (lets call it Workbook 1)
2) I then select "Record Macro" and pasted it into Workbook Master.
3) I then close Workbook 1 and finish recording.
4) I open up Workbook 2 and select the data again I want copied and try to run the macro but an error message shows up.
Ideally the macro could do the following in workbook 1 (i.e. the open workbook)
1) Select and copy all data in the rows from Cell A9 (Cell A8 always has the following text "Opening Balance" to the row just before a cell in Column A says "Closing Balance") - Some reports have maybe 10 rows of data, others could have 50 rows of data.
2) The data selected will be pasted into the Master Workbook in cell A2.
3) Workbook 1 will then close.
4) When I then open Workbook 2 I would like addiitonal data to be pasted in the next empty row.
C
an anybody please advise?
Many thanks!