Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Option Explicit
Private Sub Worksheet_Change(ByVal Target As Excel.Range)
Dim sTmp As String
Dim iPos As String
Dim bCol As Boolean
Dim bRow As Boolean
Dim sCol As String
Dim iRow As Long
sTmp = Right(Target.Address, Len(Target.Address) - 1)
iPos = InStr(1, sTmp, "$")
sCol = Left(sTmp, iPos - 1)
iRow = Right(sTmp, Len(sTmp) - iPos)
bCol = False: bRow = False
If iRow >= 2 And iRow <= 29 Then
bRow = True
End If
If Len(sCol) = 2 And Left(sCol, 1) = "A" And Right(sCol, 1) <= "F" Then
bCol = True
ElseIf sCol >= "B" Then
bCol = True
End If
If bCol = True And bRow = True Then
Target = UCase(Target.Text)
End If
End Sub
Option Explicit
Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean)
Dim ws As Worksheet
Dim iCol As Integer
Dim iRow As Integer
'Change Sheet Name if Necessary
Set ws = Sheets("Sheet1")
For iCol = 2 To 32
For iRow = 2 To 29
ws.Cells(iRow, iCol) = UCase(ws.Cells(iRow, iCol).Text)
Next iRow
Next iCol
Set ws = Nothing
End Sub