B
Bob Vance
Instead of going to the top left of my worksheet but go straight to the cell
with "1" in it. This script is activated by a form button
--
Sub ThirtyOneDays()
With ActiveSheet.Buttons(Application.Caller).TopLeftCell
If .Column > 8 Then Cells(.Row - 24, .Column - 8).Select
..Offset(-5, -8) = "1"
..Offset(-5, -7) = "31"
..Offset(-4, -8) = "0"
..Offset(-4, -7) = "0"
..Offset(-3, -8) = "0"
..Offset(-3, -7) = "0"
End With
End Sub
Thanks in advance.........Bob Vance
with "1" in it. This script is activated by a form button
--
Sub ThirtyOneDays()
With ActiveSheet.Buttons(Application.Caller).TopLeftCell
If .Column > 8 Then Cells(.Row - 24, .Column - 8).Select
..Offset(-5, -8) = "1"
..Offset(-5, -7) = "31"
..Offset(-4, -8) = "0"
..Offset(-4, -7) = "0"
..Offset(-3, -8) = "0"
..Offset(-3, -7) = "0"
End With
End Sub
Thanks in advance.........Bob Vance