VBA code

M

Mary

how to set the value of a variable?

example:

Dim FiletoPrint As String

And then I want to assign a value to FiletoPrint

What's the syntax in VBA?

FiletoPrint:= "S:\66103\04TILL\file1" ?

thanks,

Mary
 
M

Myrna Larson

Just and equal sign, no colon. The syntax := is used only with named arguments
in procedure calls.
 
Top