Which means: = average in VBA

This may be a simple question, but I search the internet for an answer and cannot find it.

Using the code below as an example, what do these symbols mean. Symbol 1 :=""

Symbol 2:=_

Application.PrintOut FileName:="", Range:=wdPrintAllDocument, Item:= _

      

+3


source to share


1 answer


This is the so-called "Named Argument". This means that you can pass the PrintOut arguments in any order as long as you name them on the left side of the ": =" operator.

Alternatively you will need to list all the arguments in the exact order shown here https://msdn.microsoft.com/en-us/library/office/ff840681.aspx



More on named arguments in VBA here: https://msdn.microsoft.com/en-us/library/office/gg251503.aspx

+4


source







All Articles