Solved

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

Posted on 2009-04-02
3
429 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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
Phishing attempts can come in all forms, shapes and sizes. No matter how familiar you think you are with them, always remember to take extra precaution when opening an email with attachments or links.
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.

789 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