Hi to all.
I ve been searching around but found nothing similar except the code i will paste below (hope to do it properly)
What i look for is to resize a table to specific rows and columns. How many rows and columns will be given by values in specific cells.
So in the following code i managed to find
Is it possible to replace
with something like
with B2, B3 belonging to the same sheet with the table?
Thank you in advance
I ve been searching around but found nothing similar except the code i will paste below (hope to do it properly)
What i look for is to resize a table to specific rows and columns. How many rows and columns will be given by values in specific cells.
So in the following code i managed to find
Code:
Sub ResizeTable()
Dim rng As Range
Dim tbl As ListObject
'Resize Table to 7 rows and 5 columns'
Set rng = Range("Table1[#All]").Resize(7, 5)
ActiveSheet.ListObjects("Table1").Resize rng
End Sub
Is it possible to replace
Code:
.Resize(7, 5)
Code:
.Resize("B2", "B3")
Thank you in advance