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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Column Names 1

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Easy one for someone!

How do I change a column name say column A to Page, column B to Item etc...

Cheers,

Andrew Elliott
 
Hmmmm ... you can't!

All you can do is use column headings in your data table, ie put the names into row 1 of the table.
 
In line with Bryan's suggestion......this does it.

Sub colheads()
Sheets("Sheet1").Activate
[A1].Value = "Part"
[B1].Value = "Ord."
[C1].Value = "Cust."
[D1].Value = "Loc."
[E1].Value = "Pcs."
ActiveWindow.DisplayHeadings = False
End Sub Thank you,
Dave Rattigan
 
You could also go to Tools>Options>View and untick Row and Column headings
Then, you can fill the top row with your own headers and colour them grey

Be aware however that you won't be able to select full columns or rows without the headers so I'd suggest leaving it until last if you go down this route HTH
~Geoff~
[noevil]
 
Cheers Guys,

I have tried the last one Geoff, but the trouble is we use the subtotal tool a lot and this method hides the 'global condensing' buttons.

I've tried your code thanks ratman, but yours does the same.

Any suggestions!

Thanks for trying to belittle me Bry - I hope your not a teacher - i be afraid to ask question in your class!

Any answer to my question - 'Userform, Module, Macro'?
 
Sorry but Bryan is right - there's no way to customise the column headers except for getting rid of them but that seems like it isn't an option for you

ps - I don't think Bryan was trying to belittle you - just stating that what you were asking for, couldn't be done - there's not much more to say than that, ergo the short message

HTH
~Geoff~
[noevil]
 
I'm actually sympathetic to people's IT problems having been there myself, I was not having a pop at you. :D

As Geoff says, there was nothing more to say, so I didn't! Looks like you didn't take offence anyway thankfully.

For my money I'd never get rid of the column headings "A", "B", etc. It could lead to a lot of confusion when writing your code, and I don't think you lose that much by having the headings there.

Hope you got what you came for!

Bryan.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top