Quote:
Sub macro_er()
Dim vFF As Long, tStr As String, vInFile As String, vOutFile As String, tstr1 As String
vInFile = "C:\Documents and Settings\priyas\My Documents\Query\123.iqy"
vOutFile = "C:\Documents and Settings\priyas\My Documents\Query\1231.iqy"
vFF = FreeFile
Open vInFile For Binary As #vFF
tStr = Space$(LOF(vFF))
tstr1 = Space$(LOF(vFF))
Get #vFF, , tStr
' Get #vFF, , tstr1
Close #vFF
tStr = replace(tStr, "MYMINDATE", Format(Range("A3").Value, "mm/dd/yyyy"))
'tStr = replace(tStr, "MYMIDDATE", Format(Range("A3").Value, "mm/dd/yyyy"))
' tStr = replace(tStr, "MYMAXDATE", Format(Range("b3").Value, "mm/dd/yyyy"))
Open vOutFile For Output As #vFF
Print #vFF, tStr;
Close #vFF
End Sub
I am getting an error saying invalid property assignment or wrong number of arguments. Why is this so any insight on this ?