#1
|
|||
|
|||
Binding text to a Form control. Possible?
Can you send text to a textbox on a Form, so that edits there will reflect back in the document?
My goal is to work through the doc checking OCR errors in first & last names and save corrections. I'm storing each name to Excel once confirmed, then reading them back so I don't need to do the same name twice. It's working fine, but a Form may be better than the debug window for output and avoid stopping/ restarting the macro. If the Form is modal I should be able to work through the whole document in one go. But I'm stuck on a method for replacing a paragraph with the text box contents of a text box. Thanks for any help |
#2
|
||||
|
||||
If you're using spell-check in conjunction with your process, there shouldn't be any need for any of that - simply tell the spell-checker to automatically fix all occurrences of the same error.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#3
|
|||
|
|||
Problem is spell checker only checks one word. I need first and last names together.
|
#4
|
||||
|
||||
A simple way would be to use Find/Replace, by selecting the problem 'name' and replacing all such occurrences with the corrected one. No macros, storage, etc. required.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#5
|
|||
|
|||
No. I'm correcting OCR errors and the 'problem name' may not be the same for all.
|
#6
|
||||
|
||||
It doesn't really matter whether the 'problem name' is the same for all - you fix them one at a time; there really is no more practical way. Having done OCR corrections numerous times, I'm aware the OCR process might mis-spell the same name a number of different ways; you simply need to handle each instance as it arises. The only thing saving any of the data might achieve is to provide you with a selection of replacement names to pick from. That's a fair coding effort for relatively little gain.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#7
|
|||
|
|||
Although, one gain would be to learn some new methods in Word VBA. I've also got a fair bit to do, so once finished it'll be used enough to warrant the effort. Yes, you're onto it...I have an ADO connection to Excel and store the names there (names + designation and the particular format used). I isolate each "name" correct if necessary, and add to Excel if not already there. Allows a match of each new instance, replacing only those needing it. Becoming less as I move through the doc. LOL It works for me! (But I'd never used Word VBA until now, so that's the nightmare part). Thought I'd lost a whole days work because didn't know to enable macros....
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Properties for data entry control on Form help | EricMannzi | Word VBA | 10 | 02-24-2015 09:48 AM |
form control Field - Drop down auto text | mrtinfl | Word | 5 | 11-19-2014 06:57 AM |
Allow Multiple Content Control same cell of form table | DeborahBartlett | Word | 1 | 01-04-2014 11:06 AM |
MS WORD 2007 - Content Control versus Text Form Field question | chamdan | Word VBA | 2 | 11-12-2013 09:51 PM |
Word 2003 - IncludeText Does Not Include Bookmark Text if in a Form Text Control | skarden | Word | 1 | 12-12-2011 10:39 PM |