+ Reply to Thread
Results 1 to 5 of 5

Macro to find columns and format

  1. #1
    Registered User
    Join Date
    06-05-2012
    Location
    Seattle, WA
    MS-Off Ver
    Excel 2007
    Posts
    30

    Macro to find columns and format

    Hello,

    My task is to build a macro where;

    Find any columns where "Date" is in the text field
    format the columns dates to MM/DD/YY

    and

    find any columns where "Token" or "Number" is in the text field
    and format the column to "Number" from sci notation.

    there would me multiple columns with "Date" in the text field.

  2. #2
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,850

    Re: Macro to find columns and format

    By text field, are you referring to the column headers in row 1?
    You can say "THANK YOU" for help received by clicking the Star symbol at the bottom left of the helper's post.
    Practice makes perfect. I'm very far from perfect so I'm still practising.

  3. #3
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,597

    Re: Macro to find columns and format

    This is my guess, so you need to adjust the contents of array, if needed.
    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    06-05-2012
    Location
    Seattle, WA
    MS-Off Ver
    Excel 2007
    Posts
    30

    Re: Macro to find columns and format

    Quote Originally Posted by Mumps1 View Post
    By text field, are you referring to the column headers in row 1?
    Yes, thank you for helping me clarify this.

  5. #5
    Registered User
    Join Date
    06-05-2012
    Location
    Seattle, WA
    MS-Off Ver
    Excel 2007
    Posts
    30

    Re: Macro to find columns and format

    Quote Originally Posted by jindon View Post
    This is my guess, so you need to adjust the contents of array, if needed.
    Please Login or Register  to view this content.
    This worked perfectly, without adjustments.

    Thank you so much!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 1
    Last Post: 12-13-2013, 02:35 PM
  2. Replies: 6
    Last Post: 04-05-2012, 04:32 PM
  3. Find and Format Macro
    By dbutler85 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-24-2012, 12:40 PM
  4. Replies: 4
    Last Post: 10-27-2011, 09:31 AM
  5. [SOLVED] Find string and format 54 columns to right
    By BeSmart in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-11-2005, 03:06 AM

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