I am trying to print a file after opening it to a file I create with the VBA. The part I am stuck at is writing to the file. Here is what I have so far.
Sub test()
Dim myFile As String
Dim testFile As String
Dim intChoice As Integer
Dim fs, f
myFile = Application.GetSaveAsFilename & "kml"
Open myFile For Output As #1
Application.FileDialog(msoFileDialogOpen).AllowMultiSelect = False
intChoice = Application.FileDialog(msoFileDialogOpen).Show
If intChoice <> 0 Then
testFile = Application.FileDialog( _
msoFileDialogOpen).SelectedItems(1)
End If
Set fs = CreateObject("Scripting.FileSystemObject")
Set f = fs.OpenTextFile(testFile)
Print #1, f
Close #1
End Sub