question

mohsenyavari-5380 avatar image
0 Votes"
mohsenyavari-5380 asked HerbertSeidenberg-6295 answered

resize table in excel by vba

Hello
I want to change table size by vba module. I have variable data row in one sheets an I want to show variable data row in table ; when I add one row in frist sheet expand table automaticaly and show true rows.

office-vba-devoffice-scripts-excel-dev
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.


What kind of table and how did you create it?


0 Votes 0 ·
OlafHelper-2800 avatar image
0 Votes"
OlafHelper-2800 answered

Not very clear what you mean or looking for.

I want to change table size by vba module

Start the macro recorder, do the modification, stop the recorder and you have your VBA code, a resize of column "A" looks like

 Columns("A:A").ColumnWidth = 32.0

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

HerbertSeidenberg-6295 avatar image
0 Votes"
HerbertSeidenberg-6295 answered

Here is an example that uses the VBA "resize" code
to resize the result of an Advanced Filter application.
Power Query would do all this automatically and easier.
https://www.mediafire.com/file/kgb3p5p2yad06s3/07_23_11.xlsm/file
https://www.mediafire.com/file/v9law32xyk27ml9/07_23_11.pdf/file

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.