ralph wrote:
> On Mon, 25 Jun 2012 17:10:18 +0200, Helge <
w...@nurfuerspam.de> wrote:
>
>>Hallo NG!
>>I need to open PathA = "%USERPROFILE%\Documents\paper\pp.csv"
>> Open PathA for Output as #FiNu
>>But it does not work that easy. Any ideas? Thanks!
>
> The "%" delimiters are for use with shells. At the command line, in
> batch files, Windows Shells (Explorer) etc.
>
> In VB use the Environ() function without the delimiters.
> Dim sRoot As String : sRoot = Environ("userprofile")
> PathA = PathA = sRoot & "\Documents\paper\pp.csv"
No real need for the extra string:
PathA = Environ("userprofile") & "\Documents\paper\pp.csv"
--
Step right up. I've got plenty of death for everybody.