spurs
Active Member
- Joined
- Oct 18, 2006
- Messages
- 479
- Office Version
- 2016
- 2013
- 2010
- 2007
- 2003 or older
- Platform
- Windows
I am trying to open a text file by the name of response.txt using VBA code.
I don't actually want the file to open or close on the screen; but I just want the vba code to assign the string variable A with the contents of the text file. The string is not more than 20 characters.
What coding would be needed to assign the contents of the text file response.txt to the variable A followed by the file response.txt file being deleted off the memory drive.
I don't actually want the file to open or close on the screen; but I just want the vba code to assign the string variable A with the contents of the text file. The string is not more than 20 characters.
What coding would be needed to assign the contents of the text file response.txt to the variable A followed by the file response.txt file being deleted off the memory drive.