I have the following code which works fine. Is there a way of reducing the number of lines when using multiple if statements. None are dependent on any others, and they all refer to the same worksheet and range. It just doesn't look right when scrolling through the code. Thought there might be a more concise way? I am not using these actual variable names.
If Not c.Offset(0, 3).Value = "" Then
var1 = True
var2 = c.Offset(0, 3).Value
End If
If Not c.Offset(0, 4).Value = "" Then
var3 = True
var4 = c.Offset(0, 4).Value
End If
If Not c.Offset(0, 5).Value = "" Then
var5 = True
var6 = c.Offset(0, 5).Value
End If
If Not c.Offset(0, 6).Value = "" Then
var7 = True
var8 = c.Offset(0, 6).Value
End If
If Not c.Offset(0, 7).Value = "" Then
var9 = True
var10 = c.Offset(0, 7).Value
End If
