Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2009-04-02
3
Medium Priority
?
454 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 2000 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

This article describes how you can use Custom Document Properties to store settings and other information in your workbook so that they will be available the next time you open the workbook.
If you need to forecast numbers -- typically for finance -- the Windows and Mac versions of Excel 2016 have a basket of tools to get the job done.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…

972 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