Dear Experts
What is the most elegant method to update data in a listobject (with a userform)?
This is the table tblCustomers:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]ID[/TD]
[TD]Name[/TD]
[TD]Street[/TD]
[TD]Postal Code[/TD]
[TD]Phone[/TD]
[TD]Mobile[/TD]
[/TR]
</tbody>[/TABLE]
The userform frmCustomer has:
txtName , txtStreet, txtPostalCode, txtPhone, txtMobile
Is this the correct procedure if I want to update a value - if the ID is given?
1) Search for the column containing the (customer) ID
2) Once the row number has been found, update the values in the rows with the userform data.
I see that Listobjects has a DataBodyRange.Cells. Is Cells(rows/columns) what I need to look at or is there another way?
I obviously want to make sure that the data entered will be converted to the same number/cell format.
Any feedback is greatly appreciated!
Maria
What is the most elegant method to update data in a listobject (with a userform)?
This is the table tblCustomers:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]ID[/TD]
[TD]Name[/TD]
[TD]Street[/TD]
[TD]Postal Code[/TD]
[TD]Phone[/TD]
[TD]Mobile[/TD]
[/TR]
</tbody>[/TABLE]
The userform frmCustomer has:
txtName , txtStreet, txtPostalCode, txtPhone, txtMobile
Is this the correct procedure if I want to update a value - if the ID is given?
1) Search for the column containing the (customer) ID
2) Once the row number has been found, update the values in the rows with the userform data.
I see that Listobjects has a DataBodyRange.Cells. Is Cells(rows/columns) what I need to look at or is there another way?
I obviously want to make sure that the data entered will be converted to the same number/cell format.
Any feedback is greatly appreciated!
Maria