stonesrock
New member
- Local time
- Yesterday, 22:59
- Joined
- Jul 13, 2010
- Messages
- 6
Hi all,
Second post on this board, a great wealth of information . Been searching everywhere for an answer to this, hoping this post will help.
I've built a straightfoward VBA process to export and import data to/from a Word template. This process is to push out compliment/complaint information to leaders to fill out and return. Everything is working fine, just stuck on one thing.
I have basic text boxes in the word template. If the end user doens't complete, when the data gets passed to my table, I'm getting 5 Carriage returns passed to my Memo field. I've tried all kinds of functions to remove (trim, replace, etc.) and still no luck. When I run in debug (the bookmark data is passed to a string, as well as tried with variant), you see spaces (even tried to replace on spaces), but still no luck in trimming out data.
It's not the end of the world if I don't find a solution. For now, I've put a default text of "Enter Comments" in the default value of the word form, then strip out if that value gets passed. I'm just worried that if end user starts to type, then decides not to, then I'm passing these unecessary values to table, using up space, etc.
Any tips that anyone can offer would be appreciated. Thanks in advance.
Second post on this board, a great wealth of information . Been searching everywhere for an answer to this, hoping this post will help.
I've built a straightfoward VBA process to export and import data to/from a Word template. This process is to push out compliment/complaint information to leaders to fill out and return. Everything is working fine, just stuck on one thing.
I have basic text boxes in the word template. If the end user doens't complete, when the data gets passed to my table, I'm getting 5 Carriage returns passed to my Memo field. I've tried all kinds of functions to remove (trim, replace, etc.) and still no luck. When I run in debug (the bookmark data is passed to a string, as well as tried with variant), you see spaces (even tried to replace on spaces), but still no luck in trimming out data.
It's not the end of the world if I don't find a solution. For now, I've put a default text of "Enter Comments" in the default value of the word form, then strip out if that value gets passed. I'm just worried that if end user starts to type, then decides not to, then I'm passing these unecessary values to table, using up space, etc.
Any tips that anyone can offer would be appreciated. Thanks in advance.