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
here c is the column number. and the data is from rows 3 to 503.for c = 2 to 500 range(Cells(3,c) : (503,c).name = range("2,c").text
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.
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 * below to say thanks.
Hi MarvinP
Thanks, but I am on excel 2003.
My personal information had been incorrectly entered.
More help please, preferably using vba code.
Thanks
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
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks