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!

Change the header name of a column

Status
Not open for further replies.

AT76

Technical User
Apr 14, 2005
460
US
I have an .xls spreadsheet and in row 1 of the spreadsheet I would like to change random header names. Is there a way to do this using:

xlws.Columns

Thank you!
 
I'd use xlws.Cells(1, colNumber) = "NewColName"

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
I found the answer:

xlws.Cells(1, "Letter of Column") = "New Header Name
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top