CF should be a lot quicker than VBA for this:
The formula I chose is:
=AND(ISEVEN(ROW()),B10<>"")
Question
I'm using VBA and I would like to ask for help with regards to the Excel I have created. I want to change the background color if a cell has value and if row count is even. Here's my code:
Sub ChangeColor()
Dim rw as Variant
Dim rng As Range
Set rng = Range("B10:H10000")
For each rw In rng.Rows
If rw.Row Mod 2 = 0 And (I dont know what to put here) Then
rw.Interior.Color = RGB (183,222,232)
End If
Next rw
End Sub
And if I may ask how do I make the process of my application faster than normal since it will slow down because of the data that has been inputted (more or less 1000 + or almost 10k).
I already solved the row count is even, kindly help me for the value.
Solution
CF should be a lot quicker than VBA for this:
The formula I chose is:
=AND(ISEVEN(ROW()),B10<>"")