Re: Deselecting - VBA
- From: "C Brandt" <cbrandt@xxxxxxxxxxxxx>
- Date: Fri, 12 Oct 2007 17:20:50 -0500
Public Sub ARM()
'
'Entry into this routine is by button depression. Each sheet has a button
controling the single cell
'
'
If Sheets("Param").Range("S30") = "Off" Then
Sheets("Param").Range("S30") = "On"
ActiveSheet.Shapes("Button 1").Select
With Selection.Characters(Start:=1, Length:=8).Font
.ColorIndex = 3 ' Red Font indicates that the "Cell
Selection Change" is arm'ed
End With
Else
Sheets("Param").Range("S30") = "Off"
ActiveSheet.Shapes("Button 1").Select
With Selection.Characters(Start:=1, Length:=8).Font
.ColorIndex = 21 ' Green indicates that "Cell Selection Change"
is off.
End With
End If
End Sub
"Jim Thomlinson" <James_Thomlinson@xxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:A159F28B-975C-4337-89E6-40730C384C87@xxxxxxxxxxxxxxxx
Post your code...Font
--
HTH...
Jim Thomlinson
"C Brandt" wrote:
In a vba routine I have selected a "button" to change the color of the
theas an indication of whether the button is in one mode or another. When
button.routine is complete the button remains selected and therefore whenever I
depress it, it thinks I am in edit mode and doesn't function as a
How do I "deselect" the button within VBA prior to leaving the routine
without selecting something else in the sheet.
Thanks for any assistance,
Craig
.
- Follow-Ups:
- Re: Deselecting - VBA
- From: Dave Peterson
- Re: Deselecting - VBA
- References:
- Deselecting - VBA
- From: C Brandt
- Deselecting - VBA
- Prev by Date: Re: where exactly is solver located at?
- Next by Date: CTRL + C and V changes functionality
- Previous by thread: Deselecting - VBA
- Next by thread: Re: Deselecting - VBA
- Index(es):
Relevant Pages
|