Open file for output

J

Johan

I have a worksheet with the following command

Open "test.txt" For Output As #2
Dim sString As String
sString = "open " & FtpServer & vbCrLf & FtpBruker & vbCrLf & FtpPwd &
vbCrLf & "get sjekk.txt" & vbCrLf & "bye"
Print #2, sString
Close #2

this works in Excel 2003 but not in Excel 2007 any one know why??
 

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

Top