Home > Software engineering >  Vba processing text relative path problem
Vba processing text relative path problem

Time:09-20

The Set f=fs. OpenTextFile (" c: \ testfile. TXT ", ForAppending, TristateFalse)
How does this and the following function similar to the absolute address into a relative address
Logfile=Application. GetOpenFilename (kget, *. The log ", "1," please open the log ", False)

CodePudding user response:

So easy:

 'Set f=fs. OpenTextFile (" c: \ testfile. TXT ", ForAppending, TristateFalse) 
The Set f=fs. OpenTextFile (CurDir $& amp; "\ testfile. TXT", ForAppending TristateFalse)
  •  Tags:  
  • VBA
  • Related