Results 1 to 3 of 3

Thread: Align all text in Left and all numeric values in center in a given range using vba.

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Administrator Excel Fox's Avatar
    Join Date
    Mar 2011
    Posts
    1,401
    Rep Power
    10
    Modify as needed

    Code:
        ActiveSheet.UsedRange.SpecialCells(2, 2).HorizontalAlignment = xlLeft
        ActiveSheet.UsedRange.SpecialCells(2, 1).HorizontalAlignment = xlCenter


    https://www.youtube.com/channel/UCnxwq2aGJRbjOo_MO54oaHA
    Last edited by DocAElstein; 06-10-2023 at 04:30 PM.
    A dream is not something you see when you are asleep, but something you strive for when you are awake.

    It's usually a bad idea to say that something can't be done.

    The difference between dream and aim, is that one requires soundless sleep to see and the other requires sleepless efforts to achieve

    Join us at Facebook

Similar Threads

  1. Replies: 11
    Last Post: 04-07-2013, 07:51 PM
  2. Replies: 2
    Last Post: 03-21-2013, 08:51 PM
  3. Extracting Numeric Values From Alphanumeric Text
    By Safal Shrestha in forum Excel Help
    Replies: 3
    Last Post: 03-21-2013, 12:04 PM
  4. Replies: 2
    Last Post: 09-24-2012, 09:20 PM
  5. Replies: 2
    Last Post: 10-05-2011, 04:18 PM

Tags for this Thread

Posting Permissions

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