Cells.EntireColumn.AutoFit
Cells.EntireRow.AutoFit
ActiveSheet.Protect Password:="1234"
ActiveSheet.Unprotect Password:="1234"
Dim cell As Range
For Each cell In Selection
If Not IsEmpty(cell.Value) Then
cell.Value = UCase(cell.Value)
End If
Next cell
Selection.Value = LCase(Selection.Value)
Dim cell As Range
For Each cell In Selection
cell.Value = Date
Next cell
Dim cell As Range
For Each cell In Selection
cell.Value = Time
Next cell
Cells.ClearFormats
Dim ws As Worksheet
For Each ws In Worksheets
If ws.Name <> ActiveSheet.Name Then
ws.Visible = xlSheetHidden
End If
Next ws
Dim ws As Worksheet
For Each ws In Worksheets
ws.Visible = xlSheetVisible
Next ws
Sheets.Add After:=Sheets(Sheets.Count)
Selection.Font.Name = "Calibri"
Selection.Font.Size = 12
Selection.Font.Bold = True
MsgBox "Process Complete!", vbInformation
Selection.Borders.LineStyle = xlContinuous
Cells.ClearComments
ActiveWindow.Zoom = 50
MsgBox ActiveCell.Row
MsgBox ActiveCell.Column
Rows("5:7").Insert
Rows(3).Delete
ActiveSheet.ListObjects("Data1").Range.AutoFilter field:=1, Criteria1:="*" & [C2] & "*", Operator:=xlFilterValues
Function GetColorCount(CountRange As Range, CountColor As Range)
Dim CountColorValue As Integer
Dim TotalCount As Integer
CountColorValue = CountColor.Interior.ColorIndex
Set rCell = CountRange
For Each rCell In CountRange
If rCell.Interior.ColorIndex = CountColorValue Then
TotalCount = TotalCount + 1
End If
Next rCell
GetColorCount = TotalCount
End Function