+ Reply to Thread
Results 1 to 6 of 6

Format Spreadsheet - borders, font size/style, split text to columns

  1. #1
    Registered User
    Join Date
    09-11-2014
    Location
    San Francisco, CA
    MS-Off Ver
    2013
    Posts
    24

    Format Spreadsheet - borders, font size/style, split text to columns

    Hello,
    I’m trying to write a code for a daily formatting process that I perform.
    Attached is example 1 – beginning data (what the data looks like when I paste it into excel).

    I need to:
    (1) Delete the quality control column
    (2) Separate the time column into separate a ‘date’ and ‘time’ columns (and fix the header accordingly)
    (3) Set the time to a 24 hour clock
    (4) Set the font to Arial, remove all bold font
    (5) The first three rows are size 7.5. The rest of the rows are size 8.5.
    (6) The entire table has a thin blue border between cells
    (7) There is a thick black line at the end of the data
    (8) All row heights are 15
    (9) Column width should be automatically adjusted to fit whatever the maximum length of text in a given cell (which may vary daily). (text should not be wrapped, it should just fit across)

    I’ve also attached example 2 –finished data (what the data should ultimately look like).

    My current (amateur) attempts to accomplish this are attached as ‘code attempt’.

    Thank you for any advice and wisdom you might be able to share!
    Attached Images Attached Images
    Attached Files Attached Files

  2. #2
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Format Spreadsheet - borders, font size/style, split text to columns

    Try this:

    Please Login or Register  to view this content.
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  3. #3
    Registered User
    Join Date
    09-11-2014
    Location
    San Francisco, CA
    MS-Off Ver
    2013
    Posts
    24

    Re: Format Spreadsheet - borders, font size/style, split text to columns

    Hi Orrin,
    Thanks for your help! This is great!

    One tweak I would like to make is that sometimes the columns vary and don't always go to "U". (sometimes they are only to Q)

    Is there are way to set the T range for the borders to count to the last filled column before drawing the borders?

    Thank you!

  4. #4
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Format Spreadsheet - borders, font size/style, split text to columns

    Hi lacke,

    Thanks for the rep!

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    09-11-2014
    Location
    San Francisco, CA
    MS-Off Ver
    2013
    Posts
    24

    Re: Format Spreadsheet - borders, font size/style, split text to columns

    This is absolutely perfect!

    Thank you so much

  6. #6
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Format Spreadsheet - borders, font size/style, split text to columns

    You're welcome!

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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: 11-08-2013, 04:16 AM
  2. How to using comma style without change font & font size
    By rameshtupe in forum Excel General
    Replies: 1
    Last Post: 07-11-2013, 01:19 PM
  3. How do I format spreadsheet w/o changing font size?
    By Amber W. in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 03-27-2006, 12:35 PM
  4. [SOLVED] How to sent for cell: font size=7,text format in VBA
    By netx in forum Excel General
    Replies: 3
    Last Post: 08-08-2005, 03:05 PM
  5. [SOLVED] How to sent for cell: font size=7,text format in VBA
    By netx in forum Excel General
    Replies: 1
    Last Post: 08-08-2005, 02:07 PM

Tags for this Thread

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