View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Johan Johan is offline
external usenet poster
 
Posts: 43
Default Open file for output

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??