Skip to content

Instantly share code, notes, and snippets.

@MayerDaniel
Created January 5, 2021 00:47
Show Gist options
  • Save MayerDaniel/e1d13fc8f684e27326c050e0ebeaa966 to your computer and use it in GitHub Desktop.
Save MayerDaniel/e1d13fc8f684e27326c050e0ebeaa966 to your computer and use it in GitHub Desktop.
VBA write to file
Dim fso As Object
Set fso = CreateObject("Scripting.FileSystemObject")
Dim oFile As Object
Set oFile = fso.CreateTextFile(".\out.txt")
oFile.WriteLine ("replaceme")
oFile.Close
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment