Find Column Header By Name And Select All Data Below Column Header (Excel-VBA)

前端 未结 5 1528
予麋鹿
予麋鹿 2020-12-06 07:42

This is my first post...

I\'m attempting to create a macro to do the following:

  1. Search a spreadsheet column header by name.
  2. Select all data fr
5条回答
  •  广开言路
    2020-12-06 08:17

    I just stumbled upon this, for me the answer was pretty straightforward, in any case If you're dealing with a ListObject then this is the way to go:

    YOURLISTOBJECT.HeaderRowRange.Cells.Find("A_VALUE").Column
    

提交回复
热议问题