I have to write a string in a txt file:
Option Explicit
Dim path As String
Dim filename1 As String
path = Application.ActiveWorkbook.Path
filename1 = "OutputHtml.txt"
Open path & "" & filename1 For Output As #1
Print #1, ""
but Print #1, "
" is automatically compiled in Print #1, "" and it show me: msg variable not defined.how can i print the right string into filename1? Thanks in advance
