View Single Post
 
Old 11-23-2013, 10:25 AM
omahadivision omahadivision is offline Windows 7 32bit Office 2007
Novice
 
Join Date: Oct 2012
Posts: 28
omahadivision is on a distinguished road
Default

Thank you. I feel that I am so close! I will do the FSO method. However, I get an error "object not found" at

Code:
Set fo = fso.OpenTextFile(Fname, 1) 'ForReading
Fname is the full path of the text file. I get it through the dialog

Code:
Set f = Application.FileDialog(1)
f.AllowMultiSelect = False
f.Title = "Choose one or more Gaussian Output files"
'f.InitialFileName = ActiveWorkbook.Path
f.Filters.Clear
f.Filters.Add "Gaussian Output Files", "*.txt"
f.InitialView = msoFileDialogViewList
I also enabled the scripting library, so I'm pretty sure that's not my problem.

Thanks again!
Reply With Quote