#1
|
|||
|
|||
creating a code to create dynamic text in word
Hi guys,
I have a word document and I want to create a code with dynamic fields in it. For instance. When I open the document it should have a command button. When I click the command button then several fields should ask me NAME, AGE, BLOOD PRESSURE, RESPIRATORY RATE and so on. I want to create a dynamic text which will be created according to an IF Formula. So if BLOOD PRESSURE IS above 160 then write 'Elevated Blood' Pressure in the Word File. can someone help me with this? thanks |
#2
|
||||
|
||||
I would do this with a userform - see the basics at http://www.gmayor.com/Userform.htm You can write the results or alternative texts based on the results to bookmarked locations, docvariables or content controls.
Take for example the part of the userform shown on that page to write a value to a bookmark i.e. Code:
FillBM "bm1", Me.TextBox1.Text Code:
If Me.TextBox1.Value > 160 Then FillBM "bm1", "Elevated Blood Pressure" End If
__________________
Graham Mayor - MS MVP (Word) (2002-2019) Visit my web site for more programming tips and ready made processes www.gmayor.com |
Tags |
dynamic fields |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How do I create a dynamic table of contents | dschrader | PowerPoint | 0 | 10-12-2015 12:38 PM |
Creating a dynamic summary sheet | FenelonPaul | Excel | 5 | 09-23-2015 07:11 AM |
How to Create Dynamic Paragraphs in Word Document | gt7586d | Word | 3 | 02-19-2015 01:02 PM |
Dynamic Text in Word | pargoooo | Word | 1 | 08-22-2013 09:12 AM |
Help Creating A Dynamic Footer | Mikemo | Word | 3 | 02-05-2013 11:58 AM |