hello! i have to loop through specific columns because some columns are merged. In the code below, i am not sure how to resolve the part on "For j = 1,5,7,13,17". i need the code to run only columns 1,5,7,13,17. Any help will be greatly appreciated!
For k = 1 to N # to loop rows
For j = 1, 5,7,13,17 # to loop specific columns because some are merged
If IsNumeric(ActiveCell.Offset(k, j)) Then
Do something
End If
Next j
Next k
For k = 1 to N # to loop rows
For j = 1, 5,7,13,17 # to loop specific columns because some are merged
If IsNumeric(ActiveCell.Offset(k, j)) Then
Do something
End If
Next j
Next k