Insert New Column in Table Excel VBA

前端 未结 3 887
星月不相逢
星月不相逢 2021-01-02 23:34

I\'m running into some issues on a worksheet that I\'m building. I want to insert a column at a specific location in a table and then set the header.

I searched aro

3条回答
  •  南笙
    南笙 (楼主)
    2021-01-03 00:10

      Dim Table As ListObject
      Set Table = Sheet1.ListObjects("Table1")
      Table.ListColumns.Add 2
      Table.HeaderRowRange(2) = "New header"
    

提交回复
热议问题