Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #11  
Old 11-23-2013, 10:25 AM
omahadivision omahadivision is offline Way to search for a string in text file, pull out everything until another string? Windows 7 32bit Way to search for a string in text file, pull out everything until another string? Office 2007
Novice
Way to search for a string in text file, pull out everything until another string?
 
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
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Way to search for a string in text file, pull out everything until another string? Macro to create new word doc and save the file using String found in the document VBNation Word VBA 2 02-08-2013 07:14 AM
Way to search for a string in text file, pull out everything until another string? Find and replace a string of text errtu Word 1 01-31-2013 02:09 PM
Excel Fomula to search for a string and display value from different column zeeshanbutt Excel 1 07-29-2012 12:48 AM
Way to search for a string in text file, pull out everything until another string? Convert numbers to a specific text string francis Excel 1 10-06-2011 01:43 PM
Extract numbers from a text string aleale97 Excel 4 02-10-2011 10:33 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 04:44 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft