Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 104
Default 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



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
copy cell by command button kalpesh Excel Worksheet Functions 1 December 28th 11 08:41 PM
Command Button Properties FredL Excel Discussion (Misc queries) 2 February 14th 08 08:20 PM
Command Button Control Properties JosiahW Excel Discussion (Misc queries) 1 May 11th 07 08:45 PM
command button properties gbeard Excel Worksheet Functions 4 April 21st 05 06:02 AM
Command Button Properties Darren O'Connell Excel Programming 1 July 17th 03 09:34 AM


All times are GMT +1. The time now is 10:45 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"