I'm trying to resize a table using VBA using this code:
Function MirrorTable()
Dim testTbl As ListObject
Set testTbl = Sheets("Testing").ListObjects(1)
MsgBox testTbl.Range.Address
testTbl.Resize testTbl.Range.Resize(15)
End Function
If I execute this function by writing =MirrorTable() into a cell the message box is displayed correctly, but then I get an #VALUE in the cell and the table is not resized. What am I doing wrong here?