+ Reply to Thread
Results 1 to 4 of 4

horizontal alignment

  1. #1
    Registered User
    Join Date
    04-02-2010
    Location
    Texas, USA
    MS-Off Ver
    Excel 2003
    Posts
    2

    horizontal alignment

    I had a macro in excel 2003 which rotated horizontal alignment of the selection.

    Please Login or Register  to view this content.
    However, in 2007 something changed. Now it seems there is a NULL problem and I can not get into the loop. I changed to this:

    Please Login or Register  to view this content.
    and now it only rotates between center and right (i never get left align). I use this for entire column selections (with headers) and with multiple range selections. Does anyone have any ideas. Does excel 2007 now see a selection range differently?

    Thanks in advance
    Heather

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: help needed: horizontal alignment

    Perhaps try:

    Please Login or Register  to view this content.
    though you might want to base the test on the first cell in the selection:

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    04-02-2010
    Location
    Texas, USA
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: help needed: horizontal alignment

    Sorry, I forgot to mention that I had tried cells(1) and this gets stuck in the center loop. Your version works more often than mine does. I think it may have to do with things being auto filtered but I can not seem to find the trend. I will use your version for now but it does not always work.

    Thanks
    Heather

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: help needed: horizontal alignment

    If you need further assistance specific to functionality already in place you will be best served posting a sample file that illustrates the problem in action.

    (to attach a file click the paperclip icon in the reply window - if you can't see it click GoAdvanced)

+ 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