question

comma-9675 avatar image
0 Votes"
comma-9675 asked Viorel-1 answered

Why can't I save the following as a string?

Dim myPath

Set myPath = "C:\stuff\Pet - Dog\other\stuff"

WScript.Echo myPath

office-vba-dev
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

Viorel-1 avatar image
0 Votes"
Viorel-1 answered

Remove Set:

 Dim myPath
 myPath = "C:\stuff\Pet - Dog\other\stuff"
 WScript.Echo myPath


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.