VBA If statement tip

When creating long VBA code it is common that the start of an If statement and the matching End If statement may not be visible on the same screen. When scrolling around trying to understand your code it can be useful to include the If statement itself as a comment following on the same line as the End If command - see examples below. If x=0 Then 'lots of code If y =1 Then 'lots of code End If   'If…

Continue ReadingVBA If statement tip

End of content

No more pages to load