var sidebar_align = 'right';
var content_container_margin = parseInt('290px');
var sidebar_width = parseInt('270px');
Unanswered: Optional variables
I'm declaring some variables in a Sub, and I wanted to do them in a specific order. However, I'm getting an error when I have a required variable between two Optionals.
Sub ThisSub(Variable1, Variable2, Optional Variable3, Variable4, Optional Variable 5)
"Compile Error: Expected: Optional"
Do I have to declare all the required ones first and then all the Optionals?
Why does the order that you're passing them matter to you?
mageem provides a good question. Simply move Variable4 just ahead of Variable2:
or.....try this in your Call
Private Sub ThisSub(Variable1, Variable2, Variable4, Optional Variable3, Optional Variable 5)
Call TheSub(Variable1, Variable2, , Variable4)