Excel OR VBA Transfer of data from multiple sheets to a single sheet.
I have a pdf doc “DrawingData.pdf” that has (in this case), 5 pages, named pages 1 through 5. (there will be occasions when there will sometimes be more pages, and sometimes less).
I convert this pdf to an excel workbook named “DrawingData.xlsx”, and there are 5 sheets named page 1, page 2, 3, 4, 5.
I also have a macro-enabled work book named “configuredata”, and I want to transfer all the data from “DrawingData.xlsx”, to sheet 1 of “configuredata.xlsm”, so that the data can be manipulated.( I’ll be doing that using macros I have cobbled together)
The problem is that the data on each page is not always the same length, (as in number of rows). 2 saving factors however, is that the last row of each page always has the words “end of report” in column B, and the first row has "Quote Nr" in A1.
What I have thus far is that in work book “configuredata” I created 10 sheets; sheets 1 through 10, with each cell in each sheet having the formula (relative to the sheets) =IF('[DrawingData.xlsx]Page 1'!$A$1="Quote Nr",'[DrawingData.xlsx]Page 1'!A1,"").
That brings in all the data onto each sheet (page 1 of DrawingData gets sucked into sheet1 of configuredata) etc.
All’s well until sheet 6 of configuredata, which gives an error #REF!, because there is no page 6, or 7 or 8-10 and each of the cells in each of the sheets gives the same error.
I’m sure that this will be a simple thing for the boffins to solve, but to me it’s a steep mountain to climb.
I will be so grateful for any helpful information. Many thanks in advance.
I have a pdf doc “DrawingData.pdf” that has (in this case), 5 pages, named pages 1 through 5. (there will be occasions when there will sometimes be more pages, and sometimes less).
I convert this pdf to an excel workbook named “DrawingData.xlsx”, and there are 5 sheets named page 1, page 2, 3, 4, 5.
I also have a macro-enabled work book named “configuredata”, and I want to transfer all the data from “DrawingData.xlsx”, to sheet 1 of “configuredata.xlsm”, so that the data can be manipulated.( I’ll be doing that using macros I have cobbled together)
The problem is that the data on each page is not always the same length, (as in number of rows). 2 saving factors however, is that the last row of each page always has the words “end of report” in column B, and the first row has "Quote Nr" in A1.
What I have thus far is that in work book “configuredata” I created 10 sheets; sheets 1 through 10, with each cell in each sheet having the formula (relative to the sheets) =IF('[DrawingData.xlsx]Page 1'!$A$1="Quote Nr",'[DrawingData.xlsx]Page 1'!A1,"").
That brings in all the data onto each sheet (page 1 of DrawingData gets sucked into sheet1 of configuredata) etc.
All’s well until sheet 6 of configuredata, which gives an error #REF!, because there is no page 6, or 7 or 8-10 and each of the cells in each of the sheets gives the same error.
I’m sure that this will be a simple thing for the boffins to solve, but to me it’s a steep mountain to climb.
I will be so grateful for any helpful information. Many thanks in advance.