+ Reply to Thread
Results 1 to 5 of 5

Change font within a checkbox

  1. #1
    Registered User
    Join Date
    04-04-2013
    Location
    Seattle, WA
    MS-Off Ver
    Excel 2007, Excel 2010, Excel 2013, Office 365
    Posts
    21

    Change font within a checkbox

    I have 20 check boxes within a dialog frame. Fifteen of them have the font I want and the other 5 do not. I need to change these last five to match the others. When used in the VBA macro, they look fine on the screen, but on the tab with the frame, they do not. The properties of the check box only allow resizing, but not adjustments to the font.

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Change font within a checkbox

    Are your checkboxes on a worksheet, or on a UserForm?
    Did you use ActiveX checkboxes, or Form checkboxes?

    ActiveX checkboxes most definitely have a Font property. If you are instead using Form checkboxes on a worksheet, you can't change the font but if you are using all Form controls then they should all have the same font.

    It might be helpful to attach your file to make it clearer what you have done.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    04-04-2013
    Location
    Seattle, WA
    MS-Off Ver
    Excel 2007, Excel 2010, Excel 2013, Office 365
    Posts
    21

    Re: Change font within a checkbox

    I figured I left out some critical information. I wrote this code years ago and I am out of practice, not to mention that it is probably inefficient. Anyway the dialog frame is in a worksheet tab and it should open to that tab in the attached file. All of the code is in the file, but I had to lop off some of the tabs to get it to meet the size restrictions.

    Originally, I could not get the form to work properly as a user form (user error I am sure), so I had to stick with something that worked. As you can see the fonts are uniform across the tab, except for the last five, which I added a few months back. For some reason they are stuck on the Courier font.
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    08-09-2012
    Location
    British Columbia
    MS-Off Ver
    Excel 2010
    Posts
    189

    Re: Change font within a checkbox

    Can't tell you why, but when I copy and paste an existing one the font stays the same.

  5. #5
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Change font within a checkbox

    I don't know why those five have a different font, but you can't change it. They are Form controls (one reason I use ActiveX). But you can simply delete them and create five new ones, which should match the other font.

+ 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. [SOLVED] Change Chart Axis Font Color with a Checkbox
    By JasonBoyd in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-26-2014, 11:18 AM
  2. Protect the sheet but the form checkbox still can be change and sort by checkbox
    By carolyn1221 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-19-2014, 01:08 PM
  3. [SOLVED] Change font size of UserForm checkbox
    By PDBartlett in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-20-2014, 10:35 AM
  4. [SOLVED] Change default font and font size on COMMENTS in cells
    By Thistledown in forum Excel General
    Replies: 4
    Last Post: 11-23-2012, 09:26 AM
  5. [SOLVED] How do I change a checkbox to unchecked without running the code within the checkbox
    By jsunnb in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-27-2012, 09:28 PM
  6. How in VBA set Font Size for a checkbox?
    By jzurbo77 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-15-2009, 05:33 AM
  7. use a font for checkbox
    By ReneeR in forum Excel General
    Replies: 1
    Last Post: 06-15-2005, 01:05 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