Solved

Centre Command buttons  text in a userform

Posted on 2012-03-23
3
442 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
.Range Set 25 75
Subtraction 4 15
how to transfer all external connections from one workbook another workbook? 6 22
Excel User Form VBA Help 18 30
This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.
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.

808 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