|
-
Jan 31st, 2006, 03:46 PM
#1
Thread Starter
New Member
Help with writing TEXT file
Hello,
I'm trying to write some TEXT in a text file using EXCEL VBA
My file is created correctly but I can't write any text in.
My code is:
Open strDestFile For Output As #iFileNum
' If an error occurs report it and end.
If Err <> 0 Then
MsgBox "Cannot open filename " & strDestFile
End
'write " HELLO WORLD"
Write #iFileNum, "HELLO WORLD"
Close #iFileNum
Any idea ?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|