+ Reply to Thread
Results 1 to 2 of 2

Use column header in Range Formula for Vlookup vba

  1. #1
    Registered User
    Join Date
    02-11-2015
    Location
    Asia
    MS-Off Ver
    Office 2016
    Posts
    12

    Use column header in Range Formula for Vlookup vba

    hi I encounter an error that it is invalid in red. How do I correct the column header "Header 2nd Number (Dept Office)"?

    I'm using column header as this is a standard template.

    Please Login or Register  to view this content.

    In addition, how do I apply the same to all files in a folder?

    Hope to answer the first qns first.

    Thank you!
    Last edited by alansidman; 12-13-2023 at 04:32 PM.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,924

    Re: Use column header in Range Formula for Vlookup vba

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however your post does not comply with our guidelines

    Please take a moment to review how to add code tags. Posting code between [code]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/code] tags makes your code much easier to read and copy for testing, and it also maintains VBA formatting.

    Please see Forum Guideline #2 about code tags and adjust accordingly. Click on Edit to open your post, then highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here.

    I have added the code tags for you today. Please take a few minutes to re-read our guidelines and rules that you agreed to when you joined and comply in the future
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Help with formula, find a name in range and recive column header
    By Masun in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 11-06-2020, 09:42 AM
  2. Define range by column header in formula
    By punno2015 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-21-2019, 10:36 AM
  3. [SOLVED] VLOOKUP returns column where column header matches another cell
    By bridge4444 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-10-2014, 11:23 AM
  4. Replies: 0
    Last Post: 12-26-2013, 01:12 PM
  5. Replies: 1
    Last Post: 10-05-2013, 03:35 PM
  6. VLookUp column header
    By jn90z in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-06-2013, 04:20 PM
  7. First column of range in VLOOKUP contains formula
    By er.diljeetsingh in forum Excel General
    Replies: 3
    Last Post: 11-10-2011, 05:19 AM

Tags for this Thread

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1