+ Reply to Thread
Results 1 to 4 of 4

How to iteratively name columns

  1. #1
    Registered User
    Join Date
    05-15-2011
    Location
    Delhi
    MS-Off Ver
    Excel 2003
    Posts
    2

    How to iteratively name columns

    Hi

    I have a worksheet with a few hundred data columns (containing 500 rows) of historical stock prices each with a heading (in my case, the ticker of the asociated stock).
    I wish to automatically name the columns as the respective tickers.

    What I want is something like this

    Please Login or Register  to view this content.
    here c is the column number. and the data is from rows 3 to 503.

    I cant get the syntax right, or I keep getting a global range error.
    Please help.
    Last edited by darsh89; 05-22-2011 at 09:08 PM.

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,169

    Re: How to iteratively name columns

    Hi darsh89 and welcome to the forum,
    In Excel 2007 they created a structured reference name if you are using a table. This sounds a lot like what you are asking for. See if this article explaining it helps.
    http://office.microsoft.com/en-us/ex...010155686.aspx
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Registered User
    Join Date
    05-15-2011
    Location
    Delhi
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: How to iteratively name columns

    Hi MarvinP

    Thanks, but I am on excel 2003.
    My personal information had been incorrectly entered.
    More help please, preferably using vba code.

    Thanks

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    45,291

    Re: How to iteratively name columns

    You're post does not compy with the forum rules.

    Please add code tags to your code example(s). Otherwise, you are unlikely to get a reply.

    Regards
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


+ 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