incidentofficer
New Member
- Joined
- Jun 25, 2013
- Messages
- 8
I have a very, very simplistic question about a very, very simple bit of VBA!
I have got this code to change a cell colour to green, but I want the cell selection to move down one cell afterwards. Unfortunately it leaps up a few cells. I have no clue what i'm doing . Any help appreciated!
Sub Mark_Green()
'
' Mark_Green Macro
' Turns cell green.
'
' Keyboard Shortcut: Ctrl+g
'
With Selection.Interior
.Pattern = xlSolid
.PatternColorIndex = xlAutomatic
.Color = 5296274
.TintAndShade = 0
.PatternTintAndShade = 0
End With
ActiveCell.Offset(1).Select
Range("A4").Select
End Sub
I have got this code to change a cell colour to green, but I want the cell selection to move down one cell afterwards. Unfortunately it leaps up a few cells. I have no clue what i'm doing . Any help appreciated!
Sub Mark_Green()
'
' Mark_Green Macro
' Turns cell green.
'
' Keyboard Shortcut: Ctrl+g
'
With Selection.Interior
.Pattern = xlSolid
.PatternColorIndex = xlAutomatic
.Color = 5296274
.TintAndShade = 0
.PatternTintAndShade = 0
End With
ActiveCell.Offset(1).Select
Range("A4").Select
End Sub