Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello,
I want to change the font (size & color) of a command button caption based of the value of a cell (true or false). I was thinking maybe something like this but not sure about the syntax. Select Case Range("R1").Value Case Is = "True" Reset.Font = "Red" Reset.Font = Size 12 ??? End Select Below is the command button code. I wasn't sure where the font change isntructions should go. Can it go anywhere in the Sub? Private Sub Reset_Click() Range("R3").Value = "False" Range("R6").Value = "False" Range("R10").Value = "False" Range("R14").Value = "False" Range("R17").Value = "False" Range("R23").Value = "False" Range("R26").Value = "False" Range("R28").Value = "False" Range("R31").Value = "False" Range("R33").Value = "False" Range("R35").Value = "False" Range("R41").Value = "False" Range("R46").Value = "False" Range("R48").Value = "False" Range("R51").Value = "False" Range("R55").Value = "False" Range("R65").Value = "False" Range("R69").Value = "False" Range("R73").Value = "False" Range("R77").Value = "False" Range("R79").Value = "False" Range("R82").Value = "False" Range("R86").Value = "False" Range("R93").Value = "False" Range("R97").Value = "False" ActiveWindow.ScrollRow = 2 Columns("G:G").Select Selection.ClearContents Range("F20:F21").Select Selection.ClearContents ActiveWindow.ScrollColumn = 1 End Sub -- Message posted via OfficeKB.com http://www.officekb.com/Uwe/Forums.a...mming/200706/1 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Protect Cell Formatting including Conditional Formatting | Excel Discussion (Misc queries) | |||
IF Command conditional formating | Excel Worksheet Functions | |||
Is there a command like subtotal but with a conditional? | Excel Worksheet Functions | |||
formatting text/number in a command | Excel Programming | |||
formatting text/number in a command | Excel Programming |