Solved

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

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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.

770 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