Questions tagged [fieldcodes]

Fields in Word are used as placeholders for data that might change in a document and for creating form letters and labels in mail-merge documents.

Fields in Word are used as placeholders for data that might change in a document and for creating form letters and labels in mail-merge documents.

Word inserts fields automatically when you use particular commands, such as when you insert a page number, when you insert a document building block such as a cover page, or when you create a table of contents. You can also manually insert fields to automate aspects of your document, such as merging data from a data source or performing calculations.

Source: https://support.office.com/

43 questions
0
votes
1 answer

MS Word mail merge: MERGESEQ and MOD

Field codes: Data: Expected result: Actual result: I was thinking about where I should tweak the codes to fix the issue that the first column of each has three records as other columns do. Also, a new class name (i.e. 1A, 1B) should be added to…
Tin Amaranth
  • 683
  • 2
  • 12
  • 23
0
votes
1 answer

Word mail merge errors in "by category"

Please see the attachments for the mail merge issue. The result expected by me should have been: But it turns out to be: I believe the error is caused by the comparison in the field codes (i.e. <>) but I couldn't figure out where the error is. If…
Tin Amaranth
  • 683
  • 2
  • 12
  • 23
0
votes
1 answer

Return part of text in MS Word field

I'm just starting to learn MS Word Fields but can't see any solution for my current problem; I have a field which I want to show ONLY the 9 characters to the left of ".docx" in the file name. Inserting the file name is of course easy, but cutting it…
Spencer Barnes
  • 2,809
  • 1
  • 7
  • 26
0
votes
1 answer

How to create dynamic hyperlink using Field Codes in MS-Word?

I am trying to add a hyperlink to a field code in MS-Word, but I want the same field code to populate as part of a search query in the url. More relevant info below: For Instance, this field code is linked to a form and will populate with a tracking…
Justin
  • 1
  • 1
  • 1
0
votes
1 answer

Using REF inside an INCLUDEPICTURE field?

I've been tasked with generating QR Codes for some documents (Word 2010) using values already filled in by users in some form fields. I've set up an ASK field in the document that collects a number. I then tried to "concatenate" that value into a…
robertrv
  • 695
  • 2
  • 11
  • 16
0
votes
0 answers

Macro to copy table cell content in the row

I have have a Word table where the first column contains MERGEFIELD field codes. I would like a macro button on each row to copy (to clipboard) the content of the cell (the MERGEFIELD) in that row. Is that possible to do in an elegant way?
Jihad Haddad
  • 592
  • 1
  • 6
  • 19
0
votes
1 answer

How to Round and Format Mail Merge Number

I have an amount that fluctuates from 1 million to over a billion and want to show the result as $1.5 million or $1.5 billion using the field codes in Word 2013 for a mail merge. (ie. 1,500,000 should display $1.5 million and 1,500,000,000 should…
ripsin
  • 273
  • 2
  • 7
  • 19
0
votes
1 answer

Using XML Mapping Pane with IF Field Code Word Document

I have been trying to use the content control from XML Mapping Pane with the IF Field Code. But I am having some issues. It seems that i am not being able to compare the value of the content control with what i want For example: { IF…
Jonathan Lam
  • 1,237
  • 3
  • 20
  • 49
0
votes
1 answer

MS Word: Mailmerge hyperlinks with query get URL string with a MERGEFIELD

I'm trying to send an email merging one document (.docx) with a contacts database (via OleDB). Using MS Word 2007, it seems easy (it works for easy things: name, address, ...) but I can't find how fill an query-get URLD string with a merge field…
Oriol Terradas
  • 1,788
  • 2
  • 19
  • 30
0
votes
1 answer

Calculate next month in WORD 2010

I am trying to calculate next day in Word 2010 and use the next formula in the field = {DATE \@ "M" } + 1 But I've got an error: !Syntax Error, { I've tired to find why it doesn't work. It's my first experiens woth fields in Word. Please, help me…
Vcitor
  • 53
  • 5
0
votes
1 answer

Word 2007 form fields unprotect document via VBA clears all fields but not in Word 2002 version

I have VBA code that prints a word document generated from a word template with form fields and then has to unprotect it to change the header and print the doc again. When I unprotect the doc to change the content of the header all form fields are…
VRoth
  • 27
  • 1
  • 7
-1
votes
1 answer

MS Word: Manipulating bookmark text values based on checkbox values

I could use some guidance on the following: I am creating a Word form that generates barcodes with fieldcodes/bookmark text: {DISPLAYBARCODE "{REF TXTUSN}" CODE128 \T \H 850 \R} Basically I am creating a form with multiple options generate barcodes…
J Dh
  • 1
-1
votes
1 answer

Calculate occurance instance of particular field using F9 word 2007

I have a word template that has a variable number of occurrences of the "SEQ" field "testnum" tag (depending on how much information needs to be included - minumum 1 SEQ field, no maximum.) I would like to create a section at the top that calculates…
1 2
3