Insert, Name

Posted on 2009-04-21
Last Modified: 2012-05-06
I've have driven myself nuts trying to get tis to do anything. I would like to name a range of cells and then use that name in formulas and macros. What am I mising? Thanks! You folks are a Godsend.
Question by:pubbuddy
    1 Comment
    LVL 80

    Accepted Solution

    In Excel 2003 and earlier, you create a named range using the Insert...Name...Define menu item.
    1) Select the desired cells
    2) In the Insert menu, choose Name, then click the arrow to its right and choose Define
    3) Put the desired name in the "Names in workbook" field at the top
    4) Click OK

    You can then use that name in a worksheet formula. If you want to use it in a macro, you must enclose it in square braces. If the name is DataTable, then you might use it like this:

    =VLOOKUP(A1,DataTable,3,FALSE)           worksheet formula

    Sub MyMacro()
    MsgBox [DataTable].Address       'Display the address of named range DataTable
    End Sub


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Should I Do With This Threat Intelligence?

    Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

    Article by: Leon
    Software Metering within our group of companies has always been an afterthought until auditing of software and licensing became a pain point. Orchestrator and SCCM metering gave us the answer and it was an exciting process.
    Microsoft Office Picture Manager was included in Office 2003, 2007, and 2010, but not in Office 2013. Users had hopes that it would be in Office 2016/Office 365, but it is not. Fortunately, the same zero-cost technique that works to install it with …
    This video walks the viewer through the process of creating an MLA formatted document, as well as a bibliography with citations.
    An overview on how to enroll an hourly employee into the employee database and how to give them access into the clock in terminal.

    761 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    9 Experts available now in Live!

    Get 1:1 Help Now