[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 732
  • Last Modified:

Centre Command buttons text in a userform

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
Seamus2626
Asked:
Seamus2626
3 Solutions
 
kgerbChief EngineerCommented:
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
 
NorieCommented:
Seamus

The caption on a command button is centred by default, and there's no setting for changing the alignment.
.
0
 
dlmilleCommented:
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now