VBA code

  • Thread starter Thread starter Mary
  • Start date Start date
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
 
Just and equal sign, no colon. The syntax := is used only with named arguments
in procedure calls.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top