scrawltome
New Member
- Joined
- May 10, 2015
- Messages
- 7
[h=2]I have a worksheet for creating and storing purchase orders. I have several different sheets and the main 'front page' sheet with command buttons. The command buttons are linked with userforms that are working perfectly, and inputting data into the appropriate sheet where and when I want.
However, on the worksheet that stores all the purchase orders, it is setup on some sort of Excel table. So if I'm manually putting in data, I just tab over the edge of the table and it automatically starts a new row and I have arranged for it to auto generate the next number.[/h]
However, on the worksheet that stores all the purchase orders, it is setup on some sort of Excel table. So if I'm manually putting in data, I just tab over the edge of the table and it automatically starts a new row and I have arranged for it to auto generate the next number.[/h]
What I want to do it:
When I click on the command button to create new purchase order, I would like the userform to go to the sheet where the purchase orders are recorded and find the next purchase order number. Therefore, going to the sheet ("Purchase Orders") and finding the last line of data +1. Then finding the auto-generated next invoice number from column A.
I'm not sure if it's possible, as the next invoice number is not actually generated yet, so the code may have to include allowing the table on sheet "Purchase Orders" to generate the number, then place it at the top of the userform.
I don't know if I'm making sense - hopefully. I've been working on this for hours! TIA.
When I click on the command button to create new purchase order, I would like the userform to go to the sheet where the purchase orders are recorded and find the next purchase order number. Therefore, going to the sheet ("Purchase Orders") and finding the last line of data +1. Then finding the auto-generated next invoice number from column A.
I'm not sure if it's possible, as the next invoice number is not actually generated yet, so the code may have to include allowing the table on sheet "Purchase Orders" to generate the number, then place it at the top of the userform.
I don't know if I'm making sense - hopefully. I've been working on this for hours! TIA.