+ Reply to Thread
Results 1 to 3 of 3

Align to the left or to the right (or center)

  1. #1
    Registered User
    Join Date
    06-01-2006
    Posts
    13

    Align to the left or to the right (or center)

    Excuse my poor English.
    Please I want to align numeric values to the left side, or to the right side, or center it in the cell in Excel. Using Visual Basic.
    Maybe using Format or FormatNumber or another function which is capable to align in the way explained.
    THANKS VERY MUCH.

  2. #2
    ward376
    Guest

    Re: Align to the left or to the right (or center)


    Range("C2").HorizontalAlignment = xlLeft
    Range("C2").HorizontalAlignment = xlCenter
    Range("C2").HorizontalAlignment = xlRight


  3. #3
    Registered User
    Join Date
    06-01-2006
    Posts
    13

    Alignment

    It works!!!
    OK. Friend.
    THANKS VERY MUCH.

+ 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