ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Command Button that changes cell properties (https://www.excelbanter.com/excel-programming/289666-re-command-button-changes-cell-properties.html)

Henry[_5_]

Command Button that changes cell properties
 
Matt,

Try
..Value = 4 (No quotes)

HTH
Henry

"Matt" wrote in message
...
I have a command button that when I click it, I want it to first clear the

formatting in the cell, then remove the data validation, then change the
font style to wingdings 2, then set the font to bold, then change the font
size to 20, then type a 4 in the cell. This is what I have and I cannot get
it to work. Any help would be great. Thanks. Matt

Private Sub cmdExempt_Click()
With ActiveCell
.ClearFormats = True
.Validation.ErrorMessage = False
.Font.FontStyle = wingdings 2
.Font.Bold = True
.Font.Size = 20
.Value = "4"
End With
End Sub





All times are GMT +1. The time now is 01:15 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com