Solved

Centre Command buttons  text in a userform

Posted on 2012-03-23
3
564 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 34

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 42

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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

How to quickly and accurately populate Word documents with Excel data, charts and images (including Automated Bookmark generation) David Miller (dlmille) Synopsis In this article you’ll learn how to use ExcelToWord! to copy data,charts, shapes …
This article describes how you can use Custom Document Properties to store settings and other information in your workbook so that they will be available the next time you open the workbook.
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

707 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