+ Reply to Thread
Results 1 to 6 of 6

Add double underline to row

  1. #1
    Registered User
    Join Date
    09-29-2004
    Posts
    17

    Add double underline to row

    I am trying to add a double underline into a specific row (Cell "A" & row). The row can change so I cannot code the position. Initially I had the text coded with a double underline, but my user wants some space between the text and the underline, which led me to try using the shape object. How would I change the following code:

    Please Login or Register  to view this content.
    Thanks.

  2. #2
    Tom Ogilvy
    Guest

    Re: Add double underline to row

    Why not make the row height higher and stick with the double underline. Or
    put the double underline on the next row and make the row height of that row
    smaller if necessary.

    --
    Regards,
    Tom Ogilvy

    "ingineu" <[email protected]> wrote in
    message news:[email protected]...
    >
    > I am trying to add a double underline into a specific row (Cell "A" &
    > row). The row can change so I cannot code the position. Initially I
    > had the text coded with a double underline, but my user wants some
    > space between the text and the underline, which led me to try using the
    > shape object. How would I change the following code:
    >
    >
    > Code:
    > --------------------
    > With Sheets(shtRpt).Shapes.AddLine(0, 100, 132, 100).Line
    > .Style = msoLineThinThin
    > .Weight = 3#
    > End With
    > --------------------
    >
    >
    > Thanks.
    >
    >
    > --
    > ingineu
    > ------------------------------------------------------------------------
    > ingineu's Profile:
    > http://www.excelforum.com/member.php...o&userid=14860
    > View this thread: http://www.excelforum.com/showthread...hreadid=566295
    >




  3. #3
    Registered User
    Join Date
    09-29-2004
    Posts
    17
    Changing the Row Height does not make a difference to where the underline appears. The spacing appears the same.

    If I put the underline in a separate row, as you suggest, it would require text.

  4. #4
    Greg Wilson
    Guest

    RE: Add double underline to row

    Assuming the text is not fixed and is not predicatable and you want the line
    length to be the same as the text length, how do you adjust the line length
    to achieve this ? The text length is not a function of the number of
    characters but is the sum of the individual character widths. And the
    character widths are specific to each character (e.g. "W" is much wider than
    "i"). This can be done, but is complex and also completely dependant on font
    size (8, 9, 10...), style (bold, italic...), type (Arial, Tahoma...), window
    zoom. Change any of these parameters and the code you use is wrong and there
    is no simple correction factor. In other words, it's highly unlikely that it
    will be worth it.

    Regards,
    Greg



    "ingineu" wrote:

    >
    > I am trying to add a double underline into a specific row (Cell "A" &
    > row). The row can change so I cannot code the position. Initially I
    > had the text coded with a double underline, but my user wants some
    > space between the text and the underline, which led me to try using the
    > shape object. How would I change the following code:
    >
    >
    > Code:
    > --------------------
    > With Sheets(shtRpt).Shapes.AddLine(0, 100, 132, 100).Line
    > .Style = msoLineThinThin
    > .Weight = 3#
    > End With
    > --------------------
    >
    >
    > Thanks.
    >
    >
    > --
    > ingineu
    > ------------------------------------------------------------------------
    > ingineu's Profile: http://www.excelforum.com/member.php...o&userid=14860
    > View this thread: http://www.excelforum.com/showthread...hreadid=566295
    >
    >


  5. #5
    Registered User
    Join Date
    09-29-2004
    Posts
    17
    The Text will be constant so my width will not change. I would like to know if there is a command that tells me the position of a specific row. I may just have to sum up the row heights to get there.

    I'll just use the Range(...).TOP statement.
    Last edited by ingineu; 07-29-2006 at 08:19 PM.

  6. #6
    Tom Ogilvy
    Guest

    Re: Add double underline to row

    the top of a cell

    activeCell.Top

    --
    Regards,
    Tom Ogilvy

    "ingineu" <[email protected]> wrote in
    message news:[email protected]...
    >
    > The Text will be constant so my width will not change. I would like to
    > know if there is a command that tells me the position of a specific
    > row. I may just have to sum up the row heights to get there.
    >
    >
    > --
    > ingineu
    > ------------------------------------------------------------------------
    > ingineu's Profile:
    > http://www.excelforum.com/member.php...o&userid=14860
    > View this thread: http://www.excelforum.com/showthread...hreadid=566295
    >




+ 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