Can a CommandButton be made round vs square

birdieman

Well-known Member
Joined
Jan 13, 2016
Messages
551
Was wondering if a CommandButton on a userform be made into a circle -- either thru code or the properties window (i looked but did not see an option in the properties window for a round button).

thanks
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.

JLGWhiz

Well-known Member
Joined
Feb 7, 2012
Messages
12,979
Office Version
  1. 2013
Platform
  1. Windows
A standard command button control selected from either the Form Controls tool box or the Active-x tool box cannot be reshaped to a circle. But you can use a circle from the shapes selections to use in the same fashion as a button. You just have to build the button yourself including the text in the shape text frame and then use the shape click event to execute code. The link below will give you some of what you need to know.
https://msdn.microsoft.com/en-us/library/bb211457(v=office.12).aspx
 
Upvote 0

My Aswer Is This

Well-known Member
Joined
Jul 5, 2014
Messages
19,343
Office Version
  1. 2021
Platform
  1. Windows
Create a Circle and save it as a image and put the image on your UserForm and assign a script to the image.
 
Upvote 0

Jaafar Tribak

Well-known Member
Joined
Dec 5, 2002
Messages
9,166
Office Version
  1. 2016
Platform
  1. Windows
You cannot reshape a control on an office userform ... but if you are adventusrous, you may chheck out this :
 
Last edited:
Upvote 0

Forum statistics

Threads
1,191,707
Messages
5,988,230
Members
440,139
Latest member
ngaicuong2017

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
Top