Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / September 2007

Tip: Looking for answers? Try searching our database.

OpenText Method with "StartRow" as a variable

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
JingleRock - 20 Sep 2007 19:46 GMT
I need to parse a text file and paste the result in the active
workbook.  I need "StartRow" to be the same row (a variable row
number) that contains the word "SALES" in the text file.  Is this
possible?
TIA
Jim Cone - 21 Sep 2007 00:18 GMT
Suggest you use the Find method to determine the row.
It returns a range object so the row would be something like...
rngFound.Row
Signature

Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware
(Excel Add-ins / Excel Programming)

"JingleRock" <cgrob@houston.rr.com>
wrote in message
I need to parse a text file and paste the result in the active
workbook.  I need "StartRow" to be the same row (a variable row
number) that contains the word "SALES" in the text file.  Is this
possible?
TIA

JingleRock - 22 Sep 2007 05:00 GMT
Jim,

    Thanks very much for your advice.
I decided to junk the OpenText Method because I have a need to use 4
different "parsing rules" on my text file (I used 2 worksheets to
receive the parsed results).  I ended up looping thru my text file and
using stmts such as:
Cells(Counter, 1).Value = "" & Mid(TextLine, 1, 8) to do my parsing.
    But I did have a use for the Find Method when selecting certain
cells, and pasting them 2 columns to the right of the search column)
in the same row as the "Found" string.  And its fast.

Thanks again,
Chuck
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.