I'm new to VBA and am using a macro to run a Benford analysis on a data set; the first part of the macro is below - the macro is setup to run in the first column and first row (I know how to adjust the columns and rows; however, there has to be data in the first row for it to run), I'm wanting to adjust it so it will run on my data set in cell E15 (there's several blanks above and some cells with data above - but i want to ignore everything above row 15). Can someone help with this? Thank you in advance.
Here's a portion of the VBA:
Col = Application.CountA(ActiveSheet.Range("1:1"))
For Step = 1 To Col
Cells(1, Step).Select
Selection.End(xlDown).Select
Row = ActiveCell.Row
For Colcells = 1 To Row
x = Left(Cells(Colcells, Step), 2)
If x > 9 Then
Arraytwotest(x) = Arraytwotest(x) + 1
End If
Here's a portion of the VBA:
Col = Application.CountA(ActiveSheet.Range("1:1"))
For Step = 1 To Col
Cells(1, Step).Select
Selection.End(xlDown).Select
Row = ActiveCell.Row
For Colcells = 1 To Row
x = Left(Cells(Colcells, Step), 2)
If x > 9 Then
Arraytwotest(x) = Arraytwotest(x) + 1
End If