How to read text by sentences into table

btamsgn

Member
Local time
Today, 18:38
Joined
Nov 8, 2010
Messages
51
Sorry
I found a solution.
 
Last edited:
Looking forwarding to receiving your code.
Will you be paying by check or by credit card?

Have you ever heard of the split() function?
 
@btamsgn, you have made the mistake that many people make when they first get here. We do, in fact, offer small amounts of code from time to time. However, there is a little "gotcha" you should consider. We who answer questions are all unpaid volunteers here, acting out of the kindness of our hearts and hoping to offer a little "push" to others. The bigger YOUR request, the less time we have for other requests.

Asking to "receive code" implies a bit more than just a "push." It is possible that your request was poorly worded, but the scope of a sentence parser is perhaps a bit much to ask. For instance, define a sentence as it will occur in your context. Most sentences end with a period, Or can it end with a question mark? And some emphatic sentences end with an exclamation mark! Then, what do you do when the person entering data to the textbox can't type worth a darn? And there are other ways to end a sentence in literary circles...

I will point you to our code repository, where I happen to have created a text parser class module. The zip file contains a VBA class module and some Word documentation on how to use the parser. It might help you. It might not. But you are welcome to look at it. I have debugged it to the best of my ability and it works for the various ways I have tested it. But I offer no guarantees, expressed or implied.

 
Split the text by the full stop and a space using the Split() function.?
You do have Google I assume?
 
Seems the O/P is used to demanding code? :(

 

Users who are viewing this thread

Back
Top Bottom