I'm writing a print setup macro in which I need to determine what the current top margin is. I searched VBA help and found the following snippet of code in the entry for TopMargin Property.
The code worked just fine and returned the correct margin value when I tested it.
My question is how/why did it work? I have never come across syntax like this. In particular I am not sure what the "/" character is for. Can anyone translate the code above into plain English?
Code:
marginInches = ActiveSheet.PageSetup.TopMargin / _
Application.InchesToPoints(1)
The code worked just fine and returned the correct margin value when I tested it.
My question is how/why did it work? I have never come across syntax like this. In particular I am not sure what the "/" character is for. Can anyone translate the code above into plain English?