+ Reply to Thread
Results 1 to 3 of 3

cell text alignment vertical - using VBA

  1. #1
    Registered User
    Join Date
    11-03-2006
    Location
    Birmingham, UK
    Posts
    18

    Exclamation cell text alignment vertical - using VBA

    Hi guys,

    I have column headings (text) in cells across my spreadsheet. I have a button which formats these headings (colour, font, size & Background colour, etc) using VBA code for automation purposes.
    What i would like to do is also have these headings displayed vertically instead of the default horizontal view. I know you can do this by going into the cell properties but i was wondering whether it was possible to do this thru VBA code?
    Is there a VBA command or setting that will change the Text to vertical?

    Regards,

    Shuja
    Last edited by Dabooj; 03-31-2008 at 05:30 AM.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464
    Quote Originally Posted by Dabooj
    Hi guys,

    I have column headings (text) in cells across my spreadsheet. I have a button which formats these headings (colour, font, size & Background colour, etc) using VBA code for automation purposes.
    What i would like to do is also have these headings displayed vertically instead of the default horizontal view. I know you can do this by going into the cell properties but i was wondering whether it was possible to do this thru VBA code?
    Is there a VBA command or setting that will change the Text to vertical?

    Regards,

    Shuja

    Please Login or Register  to view this content.
    Adjust for your range as appropriate.

    Rgds

  3. #3
    Registered User
    Join Date
    11-03-2006
    Location
    Birmingham, UK
    Posts
    18

    Exclamation

    Thanks, that works fine.

    Shuja

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1