+ Reply to Thread
Results 1 to 2 of 2

Format column based on column header

  1. #1
    Registered User
    Join Date
    08-10-2012
    Location
    Georgia
    MS-Off Ver
    Excel 2013
    Posts
    17

    Format column based on column header

    I am constantly having to format new excel spreadsheets, most are completely different. I have a script that formats the spreadsheet to an extent, but I need a way to format columns based on the column header. If a column has "$" or "total" or "amt" or any other key word that could mean currency, I want that column to be formatted to currency. Right now, those columns are manual and there could be many of those in a particular spreadsheet. Can this be done, maybe with "Case"?

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

    Re: Format column based on column header

    Hi freebird. Try this code. If there are any other key words, they will have to be added to the code.
    Please Login or Register  to view this content.
    Last edited by Mumps1; 04-19-2013 at 03:48 PM.

+ 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