Results 1 to 10 of 10

VBA to change cell alignment

Threaded View

  1. #1
    Forum Contributor
    Join Date
    04-16-2014
    Location
    Witbank, SA
    MS-Off Ver
    Excel 2013
    Posts
    268

    VBA to change cell alignment

    hi,

    I have searched but have not found...please help.

    I would like the contents of cell C1, which happens to be numbers, to align left if cell A1=0, align centre if cell A1 =1 and align Right if cell A1 =2. I realize this must be terribly easy...thanx a lot for any help..


    I STILL CANNOT SEEM TO REPLY TO MY GOOD SAMARITANS...I HOPE YOU GUYS SEE THIS SOMEHOW

    THANX TO BURAN, RIORAN AND JOHN DAVIS. YOU HAVE ALL BEEN A GREAT HELP!!

    OKAY..LET ME BE SPECIFIC...I USED BURAN'S IDEA...WORKS GREAT..THANX A LOT!!
    Last edited by juriemagic; 10-07-2014 at 08:37 AM. Reason: replies fail

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 1
    Last Post: 02-02-2012, 11:32 AM
  2. Change alignment based on if cell is text or number.
    By Owompa in forum Excel General
    Replies: 4
    Last Post: 07-21-2011, 03:54 PM
  3. How to change the alignment of multiple cells
    By Raptors in forum Excel General
    Replies: 2
    Last Post: 09-01-2010, 06:29 PM
  4. change alignment
    By lyealain in forum Excel General
    Replies: 2
    Last Post: 11-07-2008, 04:40 AM
  5. Excel will not allow me to change alignment
    By zalcjm in forum Excel General
    Replies: 2
    Last Post: 07-06-2006, 02:55 AM

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