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.
Sub SelectCells()
'This code is to automatically "activate" each cell in the Complaint Audit in the "Date Entered" column
'The reason for doing this is that for some reason, some of the entries are comming accross in the
'wrong format. This process takes a few seconds, and seems slow, but it appears to work correctly.
' SelectCells Macro
' Macro recorded 10/30/2006 by mename
'
'
Dim x As Long 'Row
Dim ws As Worksheet
For Each ws In ActiveWorkbook.Worksheets
If ws.Name = "Summary" Then
Else
ws.Activate
x = 21
For x = 21 To 500
[highlight]If Cells(x, 2).Formula = vbNullString Then
If Cells(x - 1, 2).Formula = vbNullString Then Exit For
End If[/highlight]
ws.Cells(x, 2).Select
ws.Cells(x, 2).Formula = ws.Cells(x, 2).Formula
Next x
Cells(21, 2).Select
End If
Next ws
' Range("A1").Select
' ActiveCell.FormulaR1C1 = "d"
' Range("A2").Select
End Sub
Range("E2:E" & Range("D" & ActiveSheet.Rows.Count).End(xlUp).Row) = "=RC[-1]+RC[-2]"
Range("E2").AutoFill Destination:=Range("E2:E" & Range("D" & ActiveSheet.Rows.Count).End(xlUp).Row)