Reply
 
Thread Tools Display Modes
  #1   Report Post  
Terrycoco Terrycoco is offline
Junior Member
 
Posts: 0
Default Word docvariable stop re-formatting!

I have created a user form which my users enter whatever values they want. The problem is that when I update the document to put these values in docvariables that I have set up, Word keeps reformatting what they put in! I work in healthcare and we have strange cases "HIV/HCV" "PhD", etc. and my users who are scientists know how to capitalize just fine. I don't want Word to mess with what they typed in! But every time I update the doc (through VBA) ... "HIV/HCV" turns out "hiv/hcv"; "PhD" turns out "phd", etc. I looked at switches, but I can't make it all lowercase, all uppercase, or initial caps, because there are always exceptions. How to stop this behavior?
  #2   Report Post  
Posted to microsoft.public.word.docmanagement
Stefan Blom[_3_] Stefan Blom[_3_] is offline
external usenet poster
 
Posts: 6,897
Default Word docvariable stop re-formatting!

Document variables are just string values; these shouldn't change once
they have been assigned. What does the macro do?

Stefan Blom
Microsoft Word MVP





On 2012-07-16 20:55, Terrycoco wrote:
I have created a user form which my users enter whatever values they
want. The problem is that when I update the document to put these
values in docvariables that I have set up, Word keeps reformatting what
they put in! I work in healthcare and we have strange cases "HIV/HCV"
"PhD", etc. and my users who are scientists know how to capitalize just
fine. I don't want Word to mess with what they typed in! But every time
I update the doc (through VBA) ... "HIV/HCV" turns out "hiv/hcv"; "PhD"
turns out "phd", etc. I looked at switches, but I can't make it all
lowercase, all uppercase, or initial caps, because there are always
exceptions. How to stop this behavior?





Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
DocVariable Paul Mailmerge 2 December 1st 09 07:55 PM
docvariable when empty gives error - how to stop error text in doc justagrunt Mailmerge 1 February 21st 07 04:52 AM
How do I stop formatting from changing when opened with word 97? Janis Microsoft Word Help 1 April 18th 06 04:42 PM
How can I stop Word from formatting everything I Type? guitar_girl Microsoft Word Help 2 February 8th 06 12:20 AM
How can I make Word stop formatting for me? Gila Blondie Page Layout 3 October 17th 05 11:18 PM


All times are GMT +1. The time now is 12:23 AM.

Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"