Command Button Format

Mark.B

Board Regular
Joined
Jun 14, 2004
Messages
136
Does anyone know how to make a command button (from the control toolbox in Excel) completely transparent. I need a command button that has absolutely no formatting whatsoever, including the borders / outline of the command button.

Any help is appreciated.
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
Good question Mark. I can clear everything except the line shadow. Perhaps one of the gurus could advise on that.

Could you use a label instead? You can make it completely transparent, including borders/shadows. It also has the usual events if you needed to run a macro.

Regards
 
Upvote 0
I could use a label if only I could centre the text within it vertically (but I can't). Any ideas ?
 
Upvote 0
Mark

There is a TextAlign Property but only for centering the text horizontally. Does the label need to be a specific size? I was thinking maybe combine alignment and size - would that work?
Code:
With Label1
    .TextAlign = fmTextAlignCenter
    .AutoSize = True
End With
Regards
 
Upvote 0

Forum statistics

Threads
1,213,543
Messages
6,114,236
Members
448,555
Latest member
RobertJones1986

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
Back
Top