Hi Guys,
I've been programming for what seems ages and never ran into a similar issue.
I haven't prepared the file to attach but I just want to ask if somebody ever ran into similar issues.
I have one worksheet named Database an the variable in VBA is DBSheet
The Table (Listobject) is named tbl_Data and the variable is DBTable
The code below
Works perfectly and adds a row to the end of the Listobject and it returns the correct row number in the table, this table holds 33 rows and after adding 34, so thta's correct![]()
Please Login or Register to view this content.
I also have a Userform and a button to add data
The moment I confiem and the code 'add_Row_2_Table' is run it thows an error unable to address the ListObjec bla bla and Excel just closes, no chance to press debug or anything, it triggers the error immediately![]()
Please Login or Register to view this content.
Any ideas?
I've rebuilt the table, it has 7 columns and the first column a formula to place the row number in the table
the formula:If I remove the formula the same happens so that's not it![]()
Please Login or Register to view this content.
Worksheet is unprotected and unlocked.
Any ideas would be welcome
Bookmarks