The problematic part of code is part of a bigger project I'm working on and I can't paste the whole code here.
I've excerpted this line as an example and the problem persists when only this line is present, meaning that the problem is not due to other parts of the code.
The workbook with the example is in the attachment. Notice how the table in the cells A2 and B2 disappears after clicking the CommandButton1 button.
Bookmarks