Consulting

Results 1 to 2 of 2

Thread: Check for headers in Excel

  1. #1
    VBAX Newbie
    Joined
    Dec 2017
    Posts
    1
    Location

    Check for headers in Excel

    Hi all,

    Excel automatically detect headers in the file. To know whether the file has headers, you can go over to Data, Sort, and check if "My Data has Headers" is checked. Is there a way to find out if a file has headers via macro?

    Thanks

  2. #2
    VBAX Guru Kenneth Hobs's Avatar
    Joined
    Nov 2005
    Location
    Tecumseh, OK
    Posts
    4,956
    Location
    Welcome to the forum!

    Headers is a relative term. 1, 2, 3 would not be a "header" as Excel would guess. 1, 2, 3a would be a header since one cell value (3a) in the "first" row of the data block is not numeric.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •