When assigning the freefile return in VBA for excel to an integer, why do all future calls referencing this integer require a hashtag symbol before the variable?
For example:
Dim fileName As String, textData As String, textRow As String, fileNo As Integer
fileName = "C:\test.txt"
fileNo = FreeFile 'Get first free file number
textData ="Hello World!"
Open fileName For Output As #fileNo
Write #fileNo, textData
Close #fileNo
Why does the variable fileNo have to be reference as #fileNo? Is this another way of type declaration like I found here?
Use of symbol # (hash) in VBA Macro
Thanks!