How to insert whitespace (square) in checkbox caption

dave8

Active Member
Joined
Jul 8, 2007
Messages
275
Is there a way to insert a square box (used as whitespace) in a checkbox caption?
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
Is there such a character in the font you are using? The caption can only have one font.

There is no such character in the font, but I need to somehow use this character for formatting purpose.

I am entering text on a checkbox caption that takes multiple line:

1. For example, here is a line of text I am typing in a checkbox caption property
that I want to format and look like this:

1. I want to create some whitespace before the word, "that" so the line
will look like this.

Is there a way to do this? I tried manually entering spaces but that doesn't seem to work.
 
Upvote 0
Is the WordWrap property set to True?

Yes, wordwrap is set to true. But, I want to correct my previous example:

I am entering text on a checkbox caption that takes multiple line:

1. For example, here is a line of text I am typing in a checkbox caption property
that I want to format and look like this:

1. I want to create some whitespace before the word, "that" so the line
will look like this.

In the second example above, I want to indent the second line.

Is there a way to do this? I tried manually entering spaces but that doesn't seem to work.
 
Upvote 0
Hi

I used spaces to indent the second line in the checkbox caption and it worked for me:

Code:
CheckBox1.Caption = "Hi" & vbLf & " there!"

I forced the line break with a Line Feed.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,216,360
Messages
6,130,175
Members
449,562
Latest member
mthrasher16

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top