+ Reply to Thread
Results 1 to 4 of 4

More efficient way to format a column?

  1. #1
    Registered User
    Join Date
    02-26-2008
    Posts
    18

    More efficient way to format a column?

    Hi -

    Does anyone know of a more efficient way to code this formatting of a column? It works fine, I just wanted to know if there is a better way of doing this.

    Thanks!

    Just a piece of the code:

    Please Login or Register  to view this content.

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Maybe

    Please Login or Register  to view this content.

    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  3. #3
    Forum Expert Simon Lloyd's Avatar
    Join Date
    03-02-2004
    Location
    locked in the cage
    MS-Off Ver
    All the ones my homepage shows
    Posts
    3,161
    Maybe a little neater is this:
    Please Login or Register  to view this content.
    of course if you don't need to do all the actions listed you can remove them, i added .AutoFit so the column fits to the length of word in the column but you can take it out and put your column width back in.
    It's worth remembering that you do not have to select things in order to manipulate them, as you see above i haven't selected anything (excel runs a little quicker this way), try changing activesheet to another sheet name like: Sheets("Sheet1") but have your activesheet as say sheet 3 run the code and you will find that your sheet that you are viewing did not chnage but the action was performed on the designated sheet.
    Not all forums are the same - seek and you shall find

  4. #4
    Registered User
    Join Date
    02-26-2008
    Posts
    18

    Thanks!

    Thanks guys, those worked out great!

+ 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