Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excel - Changing Columns and Rows name

Status
Not open for further replies.

Rome75

Programmer
Jul 11, 2003
8
IT
I'd like to know if it's possible to change columns and rows name in Excel using programming a VBA script???
So, i'd like to programmatically change columns name A, B, C in something always different..
thanks
 
Hi Rome75,

Columns and Rows don't really have names. The row numbers and column letters are a convenient method of unambiguously referencing a position relative to the start of a worksheet but they are not names. You can name a range which is a single column or a single row, but that is not exactly the same as a row or column id because it will move if rows or columns are inserted or deleted before it.

Enjoy,
Tony
 
You can't change row and column references - they are A,B,C or 1,2,3
you CAN however, use Tools>Options and turn off row and column headers - then you can use the 1st row and the 1st column to give whatever headers you desire (just format the background colour to grey or whatever)

Rgds, Geoff
Si hoc legere scis, nimis eruditionis habes
Want the best answers to your questions ? - then read me baby one more time - faq222-2244
 
Thank you guys,

I knew that...I wanted just to be sure...
..I'm going probably to hide the headers..
bye
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top