+ Reply to Thread
Results 1 to 4 of 4

VBA To Create Named Ranges

  1. #1
    Registered User
    Join Date
    07-05-2013
    Location
    Dallas,Tx
    MS-Off Ver
    Excel 2007
    Posts
    6

    VBA To Create Named Ranges

    I'm new to VBA so I definitley need some help. I have a large Excel file that has multiple worksheets and I need to create named ranges for it. I'm looking for a code that will look into the named worksheet and create a named range for every column Starting with Column Q and continuing to column AB. The columns vary in length, so the named range needs to start in row 4 and extend to the last cell that contains a number. The name for each range needs to be whatever is in row 3 of that column.

    I'm hoping that this will save on time and I'll be able to apply it to each needed worksheet.

  2. #2
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: VBA To Create Named Ranges

    Please do not duplicate post

    http://www.excelforum.com/excel-prog...ed-ranges.html

  3. #3
    Registered User
    Join Date
    07-05-2013
    Location
    Dallas,Tx
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: VBA To Create Named Ranges

    What I have so far is

    Please Login or Register  to view this content.
    but it is including cells in the range that don't have any data, but instead have ""
    how can I create it so it doesn't select cells that are displaying "" (from an if statement)
    Last edited by arlu1201; 09-21-2013 at 02:01 AM.

  4. #4
    Registered User
    Join Date
    09-20-2013
    Location
    Chattanooga, TN
    MS-Off Ver
    Excel 2010
    Posts
    1

    Re: VBA To Create Named Ranges

    Have you tried using Value to make sure it is looking at the results and not the cell contents?

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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