dpaton05
Well-known Member
- Joined
- Aug 14, 2018
- Messages
- 2,392
- Office Version
- 365
- 2016
- Platform
- Windows
I have a complex spreadsheet that is used to generate a quote. The quote has information at the top: Caseworker, Organisation and Child/YP in 3 different cells. There is then a table under that called npss_quote. The table has rows relating to the information at the top.
The quotes then need to be copied to a another spreadsheet. This spreadsheet is called Costing tool. In Costing tool there is a table called tblCosting which contains more details regarding the quotes. The rows from npss_quote need to be copied below rows that exist in tblCosting. The information at the top of the quoting spreadsheet, Caseworker, Organisation and Child/YP needs to be the same for every row that gets copied across but the rows in npss_quote will have information that is specific to the individual row. The specific information for each row is Date, Service and Price.
I need code to be run from within the quoting spreadsheet to transfer the rows across to costing tool. I could work a lot of it out myself but I am not sure about copying the 3 cells at the top of the quoting spreadsheet to be the same for every row in npss_quote but then to have specific information regarding each row. The information that is specific to each row is Date, Service and Price.
So, every row that is copied from npss_quote to tblCosting will have the 3 cells at top of the quoting spreadsheet: Caseworker, Organisation and Child/YP, the same for each row. Every row in tblCosting will have a Date, Service and Price that is specific to each row in npss_quote.
The 3 cells at the top of the quoting spreadsheet that are to be copied for every row are:
These need to be copied for each row that is copied from npss_quote to tblCosting. The cells in tblCosting that they need to go in are:
The location of information that is specific to every row, Date, Service and Price is as follows:
The header row for npss_quote is in row 10 with data starting in row 11. The header row for tblCosting is in row 4 with the data starting in row 5.
I have tried to explain this but if it doesn't make sense, please reply to me and ask for clarification.
I would just like to say that this forum is the best,
I would really appreciate help with this,
Dave
The quotes then need to be copied to a another spreadsheet. This spreadsheet is called Costing tool. In Costing tool there is a table called tblCosting which contains more details regarding the quotes. The rows from npss_quote need to be copied below rows that exist in tblCosting. The information at the top of the quoting spreadsheet, Caseworker, Organisation and Child/YP needs to be the same for every row that gets copied across but the rows in npss_quote will have information that is specific to the individual row. The specific information for each row is Date, Service and Price.
I need code to be run from within the quoting spreadsheet to transfer the rows across to costing tool. I could work a lot of it out myself but I am not sure about copying the 3 cells at the top of the quoting spreadsheet to be the same for every row in npss_quote but then to have specific information regarding each row. The information that is specific to each row is Date, Service and Price.
So, every row that is copied from npss_quote to tblCosting will have the 3 cells at top of the quoting spreadsheet: Caseworker, Organisation and Child/YP, the same for each row. Every row in tblCosting will have a Date, Service and Price that is specific to each row in npss_quote.
The 3 cells at the top of the quoting spreadsheet that are to be copied for every row are:
- Caseworker in B6
- Organisation in B7
- Child/YP in in a merged cell G6:H6
These need to be copied for each row that is copied from npss_quote to tblCosting. The cells in tblCosting that they need to go in are:
- Caseworker needs to be put in column G
- Organisation needs to be put in column F
- Child/YP needs to be put in column D
The location of information that is specific to every row, Date, Service and Price is as follows:
- Date is column A of npss_quote and needs to go in column A in tblCosting
- Service is in column B of npss_quote and needs to go in column E in tblCosting
- Price is in column H of npss_quote and needs to go in column H in tblCosting
The header row for npss_quote is in row 10 with data starting in row 11. The header row for tblCosting is in row 4 with the data starting in row 5.
I have tried to explain this but if it doesn't make sense, please reply to me and ask for clarification.
I would just like to say that this forum is the best,
I would really appreciate help with this,
Dave