+ Reply to Thread
Results 1 to 13 of 13

bold font in accordance with active cell

  1. #1
    Valued Forum Contributor marreco's Avatar
    Join Date
    07-02-2011
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    1,862

    bold font in accordance with active cell

    Hi.
    I need that when the cell is selected, if no bold font, then you will be in bold.

    if the cell is selected, has a bold font, so will NOT be in bold.
    Please Login or Register  to view this content.
    "No xadrez nem sempre a menor dist?ncia entre dois pontos ? uma linha reta" G. Kasparov.

    If your problem is solved, please say so clearly, and mark your thread as Solved: Click the Edit button on your first post in the thread, Click Go Advanced, select b from the Prefix dropdown, then click Save Changes. If more than two days have elapsed, the Edit button will not appear -- ask a moderator to mark it.

  2. #2
    Forum Expert OllieB's Avatar
    Join Date
    12-20-2012
    Location
    Netherlands
    MS-Off Ver
    Excel 2007 (home) & 2010 (office)
    Posts
    1,542

    Re: bold font in accordance with active cell

    Something like?

    Please Login or Register  to view this content.
    If you like my contribution click the star icon!

  3. #3
    Valued Forum Contributor marreco's Avatar
    Join Date
    07-02-2011
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    1,862

    Re: bold font in accordance with active cell

    Hi.
    Can I ask one more question?
    how do I use this your code, so automatically?

    Thank you!!!

  4. #4
    Forum Expert OllieB's Avatar
    Join Date
    12-20-2012
    Location
    Netherlands
    MS-Off Ver
    Excel 2007 (home) & 2010 (office)
    Posts
    1,542

    Re: bold font in accordance with active cell

    You can place this code in a worksheet_change event if you want.

  5. #5
    Valued Forum Contributor marreco's Avatar
    Join Date
    07-02-2011
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    1,862

    Re: bold font in accordance with active cell

    hi.

    Yes!!

    Thnks

  6. #6
    Valued Forum Contributor marreco's Avatar
    Join Date
    07-02-2011
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    1,862

    Re: bold font in accordance with active cell

    Hi.
    any tips on how to do this so automatically?

    You can place this code in a worksheet_change event if you want.
    YES!!
    Thank you!

  7. #7
    Valued Forum Contributor marreco's Avatar
    Join Date
    07-02-2011
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    1,862

    Re: bold font in accordance with active cell

    Hi.
    this code does what I need it to do.
    Please Login or Register  to view this content.
    But I need only the interval that follows the code below
    then the code should only go in column "A" to column "AD"
    Please Login or Register  to view this content.

  8. #8
    Forum Expert OllieB's Avatar
    Join Date
    12-20-2012
    Location
    Netherlands
    MS-Off Ver
    Excel 2007 (home) & 2010 (office)
    Posts
    1,542

    Re: bold font in accordance with active cell

    Your original solution does:
    1. for each cursor movement on the worksheet
    2. set the bold property to FALSE for ALL cells on the worksheet (irrespective of which cell is selected)
    3. set the bold property to TRUE for the entire row of the selected cell

    What I gave you was to switch the bold property ON when it was current OFF, and OFF when it was ON for a selected row. This is what you asked for in your first post.

    If you want your original solution, but only want to apply the bold property from A to AD then use the following code:
    Please Login or Register  to view this content.

  9. #9
    Valued Forum Contributor marreco's Avatar
    Join Date
    07-02-2011
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    1,862

    Re: bold font in accordance with active cell

    Hi.
    appeared the following error:
    Run-time error '1004 ':
    Method 'Range' of object '_Worsheet' failed

  10. #10
    Forum Expert OllieB's Avatar
    Join Date
    12-20-2012
    Location
    Netherlands
    MS-Off Ver
    Excel 2007 (home) & 2010 (office)
    Posts
    1,542

    Re: bold font in accordance with active cell

    Change

    Please Login or Register  to view this content.
    to

    Please Login or Register  to view this content.

  11. #11
    Forum Contributor thameem127's Avatar
    Join Date
    04-06-2012
    Location
    Jeddah,Saudi Arabia
    MS-Off Ver
    Excel 2003,Excel 2007
    Posts
    321

    Re: bold font in accordance with active cell

    Try this

    Please Login or Register  to view this content.

  12. #12
    Valued Forum Contributor marreco's Avatar
    Join Date
    07-02-2011
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    1,862

    Re: bold font in accordance with active cell

    Hi

    soved by OllieB

    thank you all!!

  13. #13
    Forum Expert OllieB's Avatar
    Join Date
    12-20-2012
    Location
    Netherlands
    MS-Off Ver
    Excel 2007 (home) & 2010 (office)
    Posts
    1,542

    Re: bold font in accordance with active cell

    Quote Originally Posted by thameem127 View Post
    Try this
    thaneem127, the request was to remove the bold property for all cells on the worksheet, and to subsequently apply the bold property again for columns A to AD of the currently selected row. How would your solution achieve this?

+ 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