+ Reply to Thread
Results 1 to 8 of 8

Strikethrough a specified row

  1. #1
    Forum Contributor
    Join Date
    02-07-2011
    Location
    Bhutan
    MS-Off Ver
    Excel 2007
    Posts
    244

    Strikethrough a specified row

    Hi friends,
    Can somebody please help me how to strike through a particular row using vba code.

    I have an excel sheet and I have 20 rows, I have created a user form and have created a combo box which populates the row number, can somebody please help me, how to strike through that row only when I click strikethrough after I select it in the combo box.
    Thanks in advance,
    best regards,
    me.
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    08-22-2012
    Location
    nj, us
    MS-Off Ver
    Excel 2010
    Posts
    163

    Re: Strikethrough a specified row

    what do u mean by "strikethrough"?
    like in format?

  3. #3
    Forum Contributor
    Join Date
    02-07-2011
    Location
    Bhutan
    MS-Off Ver
    Excel 2007
    Posts
    244

    Re: Strikethrough a specified row

    Hi John,
    yes, for example i select the row number 5 in the combox and click on strikethrough,
    the value from Column A to Column I will be striked through.(Like manually what I do is rightclick on a cell Format cells>Font>Strikethrough)
    Thanks in advance,
    me

  4. #4
    Forum Contributor
    Join Date
    08-22-2012
    Location
    nj, us
    MS-Off Ver
    Excel 2010
    Posts
    163

    Re: Strikethrough a specified row

    so it is Row(a) to whatever row u choose?

  5. #5
    Forum Contributor
    Join Date
    02-07-2011
    Location
    Bhutan
    MS-Off Ver
    Excel 2007
    Posts
    244

    Re: Strikethrough a specified row

    No, it is like I select row 5 then the values in row 5 from column A to Column I is striked through.
    I have attached an example actually what I am trying to achieve.
    thanks a ton
    best regards,
    me
    Attached Files Attached Files
    Last edited by fatalcore; 09-15-2012 at 08:16 AM.

  6. #6
    Forum Contributor
    Join Date
    08-22-2012
    Location
    nj, us
    MS-Off Ver
    Excel 2010
    Posts
    163
    i got it!(wait for dramatic effect)

    Strikethrough.xlsmhere it is!

    updated it!
    (added option button)
    Strikethrough.xlsmStrikethrough.xlsm

    didn't u finish already?
    with the "example file"? row 5 is strikethrough

    click star icon if i helped.also mark as solved(don't forget),but u are a "forum contributor", so i guess u know that
    Last edited by JBeaucaire; 09-15-2012 at 09:58 AM.

  7. #7
    Forum Contributor
    Join Date
    02-07-2011
    Location
    Bhutan
    MS-Off Ver
    Excel 2007
    Posts
    244

    Re: Strikethrough a specified row

    Done John,
    Thanks a ton. I just added +5 to this line and everything worked like a charm ! :D
    Please Login or Register  to view this content.
    Thank mate,
    Best regards,
    Me

  8. #8
    Forum Contributor
    Join Date
    08-22-2012
    Location
    nj, us
    MS-Off Ver
    Excel 2010
    Posts
    163
    you're welcome

    glad to help
    Last edited by john456852; 09-18-2012 at 10:18 AM.

+ 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