Hello There,
I have 2 worksheets (Please refer attached Sample Workbook):
1. Data Entry/View/Update:
This is where you enter new data and send to worksheet 'Data Store' to be store in an excel table
2. Data Store:
This is where the above entered data is stored in a table. From here you send the stored data to worksheet 'Data Entry View Update' for view, or modify purpose.
I would like to perform the following 2 tasks using VBA:
1. Send data from 'Data Entry/View/Update' to 'Data Store'
In worksheet 'Data Entry', I enter values of an invoice.
The invoice cell values has it's own Defined Names.
1. When I click the button 'Transfer', it should validate certain values:
a. Check if the 'Invoice Number' (InvNumber) is empty.
If yes then
- display a message 'Invoice Number is empty'
- navigate to 'Invoice Number'
- and exit
else
- Create a row in worksheet 'Data View', in table 'Table1'
- Copy all the cell values from worksheet 'Data Entry' into the last row created in 'Table1'
- Clear the cell values in worksheet 'Data View'
End if
2. Send data from 'Data Store' to 'Data Entry View Update'
When the user clicks on the button 'Data View', it should check t=if the cursor is in a Table Row.
If yes then
- Copy the Table Row data and paste it in worksheet 'Data Entry View Update' in it's respective invoice cell values
else
- display a message 'A table row needs to be selected'
- exit
End if
The mapping of the invoice cell values and the table column names are mentioned in their respective worksheets.
Could you please advice how this can be achieved with the excel table?
Many thanks and look forward to hearing from you.
Regards,
Don
I have 2 worksheets (Please refer attached Sample Workbook):
1. Data Entry/View/Update:
This is where you enter new data and send to worksheet 'Data Store' to be store in an excel table
2. Data Store:
This is where the above entered data is stored in a table. From here you send the stored data to worksheet 'Data Entry View Update' for view, or modify purpose.
I would like to perform the following 2 tasks using VBA:
1. Send data from 'Data Entry/View/Update' to 'Data Store'
In worksheet 'Data Entry', I enter values of an invoice.
The invoice cell values has it's own Defined Names.
1. When I click the button 'Transfer', it should validate certain values:
a. Check if the 'Invoice Number' (InvNumber) is empty.
If yes then
- display a message 'Invoice Number is empty'
- navigate to 'Invoice Number'
- and exit
else
- Create a row in worksheet 'Data View', in table 'Table1'
- Copy all the cell values from worksheet 'Data Entry' into the last row created in 'Table1'
- Clear the cell values in worksheet 'Data View'
End if
2. Send data from 'Data Store' to 'Data Entry View Update'
When the user clicks on the button 'Data View', it should check t=if the cursor is in a Table Row.
If yes then
- Copy the Table Row data and paste it in worksheet 'Data Entry View Update' in it's respective invoice cell values
else
- display a message 'A table row needs to be selected'
- exit
End if
The mapping of the invoice cell values and the table column names are mentioned in their respective worksheets.
Could you please advice how this can be achieved with the excel table?
Many thanks and look forward to hearing from you.
Regards,
Don
. You did the entire Userform so quick. If there was a choice, I would clicked the 'Like' a 100x