+ Reply to Thread
Results 1 to 6 of 6

Underline cells using VBA

  1. #1
    Registered User
    Join Date
    06-05-2008
    Posts
    22

    Underline cells using VBA

    I have a series of cells in a column and I would like to programatically add an underline each time there is a break in the cell value. For example,

    100
    100
    100
    100
    200
    200
    250
    400
    400
    400
    400

    Any ideas?

  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

    Change Column letter to your column

    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
    Registered User
    Join Date
    06-05-2008
    Posts
    22
    Sorry, I should have been more clear. I want the cell underlined, not the text in the cell.

  4. #4
    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
    Change to

    Please Login or Register  to view this content.
    VBA Noob

  5. #5
    Registered User
    Join Date
    06-05-2008
    Posts
    22
    One more alteration. How can I change it to underline all cells from Column A-L ?

  6. #6
    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
    Try


    Please Login or Register  to view this content.
    VBA Noob

+ 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. Count including Blank Cells
    By bhofsetz in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 02-17-2015, 02:11 PM
  2. Averaging non continuous cells, and ignoring cells with errors
    By bog3494 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-27-2008, 02:06 PM
  3. Adding adjacent cells when value of cells is the same
    By mike d in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-15-2008, 05:45 AM
  4. Macro to Lock cells in protected sheet depending on criteria
    By Zyphon in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 01-30-2008, 12:00 PM
  5. Counting occurence of multiple cells containing data
    By BrakZak in forum Excel General
    Replies: 8
    Last Post: 11-08-2007, 09:52 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