Excel VBA extend table when data added below table

前端 未结 3 1111
情话喂你
情话喂你 2021-01-22 14:11

I have a table in Excel that when users add data after the table, the data doesn\'t belong to the table.

I\'ve created a code that can be executed to extend the table. T

3条回答
  •  清酒与你
    2021-01-22 14:26

    You can change Excel setting to do that :

    File > Options > Proofing > AutoCorrect Options > AutoFormat As You Type and check Include new rows and columns in table

    Or run this line only one time:

    Application.AutoCorrect.AutoExpandListRange = True
    

提交回复
热议问题