#1
|
|||
|
|||
How do I replace a field with regular text
I have a field in which I need to change to the last baseline entered in DOORS. I will be sending this data into a macro, but I don't want to keep the field when I change its text. Is it possible to replace the field with regular text so that the user doesn't see it as a field and if so, how do I do this?
Chris |
#2
|
|||
|
|||
Assuming your field is selected:
Selection.Fields(1).Unlink |
#3
|
||||
|
||||
What kind of field?
__________________
Graham Mayor - MS MVP (Word) (2002-2019) Visit my web site for more programming tips and ready made processes www.gmayor.com |
#4
|
|||
|
|||
I have 2 fields actually. One is a date field and the other is a document variable. The date field is the first field and the document variable field, called previousBL, is the second one. It is very important that I change at least the date field to regular text so that it doesn't change each day when the user opens the document.
Chris |
#5
|
||||
|
||||
Date fields have useful variations which I would recommend before you throw the baby out with the bathwater. Perhaps you can use one of the other variations instead of unlinking the field.
{Date} is problematic as it shows today's date whenever it is updated {CreateDate} is the date that the document was created (or the date you used SaveAs) {SaveDate} is the date the document was last saved. This won't have a value until the doc has been saved at least once and the field is updated.
__________________
Andrew Lockton Chrysalis Design, Melbourne Australia |
Tags |
field codes |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Find and replace a text with a field | eduzs | Word VBA | 6 | 02-23-2018 05:19 PM |
Macro to find text and replace with form field containing that text | iiiiifffff | Word VBA | 16 | 06-04-2016 01:47 AM |
Macro to find coloured text and replace with form-field/formtext containing that text | tarktran | Word VBA | 1 | 11-26-2014 08:12 AM |
search and replace a field containing text and numbers | H28Sailor | Word | 6 | 09-11-2014 01:00 AM |
Replace activex checkbox by regular one | Darghon | Word | 0 | 11-15-2012 09:24 AM |