Solved

Excel - how to rotate column header on its side using VBA with Excel Automation

Posted on 2009-04-02
3
398 Views
Last Modified: 2012-05-06
Hi EE,

Can you pls offer a code snippet to rotate column header on its side?

tx, sandra
0
Comment
Question by:mytfein
  • 2
3 Comments
 
LVL 85

Accepted Solution

by:
Rory Archibald earned 500 total points
ID: 24051027
If by column header you mean the text in a range, then it's the Orientation property - for example:
 

xlApp.Activesheet.Range("A1").Orientation = 90

Open in new window

0
 

Author Comment

by:mytfein
ID: 24051219
Thx Rory,

It works! tx, s
0
 

Author Comment

by:mytfein
ID: 24051227
oh, i put your code in a with.. workseeht:

.Range("H5").Orientation = 90

tx, s
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

This tutorial explains how to create a series of drop-down lists that are dependent upon prior selections to guide (“force”) the user to make the correct selection and reduce data errors within Microsoft Excel. Excel 2010 was used for this tutorial;…
This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now