Hi smithymcsmithy,
I've been playing with some "button" effects - see if you like it:
Sub TallyButton(Cap As String)
Dim D As Date, ws As Worksheet, A As Range, T As Single
Dim i As Integer, j As Integer: D = Date: T = Timer
Selection.ShapeRange.Fill.ForeColor.SchemeColor = 3
Selection.HorizontalAlignment = xlCenter
Selection.VerticalAlignment = xlCenter
Delay:
If Timer - T > 0.5 Then
Selection.ShapeRange.Fill.ForeColor.SchemeColor = 4
Selection.ShapeRange.Fill.BackColor.SchemeColor = 23
Selection.ShapeRange.Fill.TwoColorGradient msoGradientFromCenter, 1
Selection.HorizontalAlignment = xlLeft
Selection.VerticalAlignment = xlTop
Else:
GoTo Delay
End If
Set ws = ThisWorkbook.Worksheets("Sheet2")
Set A = ws.Range("A4:A15")
j = A.Find(Cap).Row
Do: i = i + 1: Loop Until ws.Cells(2, i) = D
ws.Cells(j, i) = ws.Cells(j, i) + 1: i = 0
End Sub
Bookmarks