+ Reply to Thread
Results 1 to 5 of 5

Selecting multiple columns for reformatting

  1. #1
    Forum Contributor
    Join Date
    10-28-2009
    Location
    Portland, Maine
    MS-Off Ver
    Excel 2003
    Posts
    102

    Selecting multiple columns for reformatting

    I need a quicker and more efficient way of reformatting date columns. I put together the following code but it only allows me to specify a single column or continuous range.

    I would like to be able to quickly identify multiple columns that need to be reformatted.

    I would like to be able to input the column letters (a,b,d,e,f ect…) and have each of the respective columns selected for reformatting.

    Any ideas on how do to this would be greatly appreciated.
    Thanks!


    Please Login or Register  to view this content.
    Last edited by yunesm; 11-04-2010 at 05:42 PM.

  2. #2
    Valued Forum Contributor blane245's Avatar
    Join Date
    02-20-2009
    Location
    Melbourne, FL
    MS-Off Ver
    Excel 2010
    Posts
    649

    Re: Selecting multiple columns for reformatting

    Why not use cell selection as a means to generalize this? For example,
    Please Login or Register  to view this content.
    Then you just select the cells you want to format and run the macro. Assign it to a quick key to make it even faster.
    Bob
    Click my star if my answer helped you. Mark the thread as [SOLVED] if it has been.

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,251

    Re: Selecting multiple columns for reformatting

    Use Application.InputBox (as opposed to just InputBox) with type=8

    Please Login or Register  to view this content.

    You can select more than one area or several non-contiguous columns ... whatever
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  4. #4
    Forum Contributor
    Join Date
    10-28-2009
    Location
    Portland, Maine
    MS-Off Ver
    Excel 2003
    Posts
    102

    Re: Selecting multiple columns for reformatting

    Thank you both! These are both great. I'm tried them both and I'm going to see which one is most efficient.

    Thanks again!

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,251

    Re: Selecting multiple columns for reformatting

    You're welcome. Thanks for the feedback.

+ 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