Solved

Centre Command buttons  text in a userform

Posted on 2012-03-23
3
385 Views
Last Modified: 2012-03-27
Hi,

I want to know how to centre the text in command buttons on a user form or have them all aligned to the left

Thanks
Seamus
0
Comment
Question by:Seamus2626
3 Comments
 
LVL 12

Assisted Solution

by:kgerb
kgerb earned 167 total points
ID: 37757763
There is no alignment property for the text of a command button.  I would suggest using a label and setting the SpecialEffect property to frmSpecialEffectRaised.  It looks just like a command button and you have the ability to align the text however you like.

Kyle
0
 
LVL 33

Assisted Solution

by:Norie
Norie earned 166 total points
ID: 37757768
Seamus

The caption on a command button is centred by default, and there's no setting for changing the alignment.
.
0
 
LVL 41

Accepted Solution

by:
dlmille earned 167 total points
ID: 37760069
Are we understanding the question?  In MY installation, all command buttons on userforms or on the worksheet already center the caption by default.

Seamus, have we understood the question?

To align a bunch of command buttons, select them all, then right click->Align and select the option desired.

Dave
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Sparklines have been introduced with Excel 2010 and are a useful tool for creating small in-cell charts, used for example in dashboards. Excel 2010 offers three different types of Sparklines: Line, Column and Win/Loss. What it does not offer is a…
Drop Down List with Unique/Distinct Values (enhancing the Combo-Box with a few steps and a little code) David miller (dlmille) Intro Have you ever created a data validation list from a database field or spreadsheet column (e.g., Zip Codes or Co…
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now