Home |
Search |
Today's Posts |
#1
|
|||
|
|||
Formatting field does not format all field data
We're making a template with fields. In this template we have a field that
we select and give a style. The template have macros that fill fields with data. As we create a new document based on the template, the fields are filled with data (strings) correctly, but the style is only applied correctly to the the first word of the string in the field data. Seems like the data in the fields are only formatted correctly if there are no spaces in the string. Why is this? How do we correctly add styles to fields so that all the fields' data are styled? -- _________________ Rolf @ Questus ans |
#2
|
|||
|
|||
Are you using the Charformat switch? With it, you apply the desired
formatting to the first character of the Field code. -- Hope this helps. Please reply to the newsgroup unless you wish to avail yourself of my services on a paid consulting basis. Doug Robbins - Word MVP "Rolf Barbakken" wrote in message ... We're making a template with fields. In this template we have a field that we select and give a style. The template have macros that fill fields with data. As we create a new document based on the template, the fields are filled with data (strings) correctly, but the style is only applied correctly to the the first word of the string in the field data. Seems like the data in the fields are only formatted correctly if there are no spaces in the string. Why is this? How do we correctly add styles to fields so that all the fields' data are styled? -- _________________ Rolf @ Questus ans |
#3
|
|||
|
|||
No I am not using this switch. Doesn't this mean that I have to enter
"\*Charformat" into every field and format the first character in the field? I have about 250 templates that I have to convert from one style without fields into a style using fields, and entering "\*Charformat" for every field is very time consuming -- _________________ Rolf @ Questus ans "Doug Robbins" wrote in message ... Are you using the Charformat switch? With it, you apply the desired formatting to the first character of the Field code. -- Hope this helps. Please reply to the newsgroup unless you wish to avail yourself of my services on a paid consulting basis. Doug Robbins - Word MVP "Rolf Barbakken" wrote in message ... We're making a template with fields. In this template we have a field that we select and give a style. The template have macros that fill fields with data. As we create a new document based on the template, the fields are filled with data (strings) correctly, but the style is only applied correctly to the the first word of the string in the field data. Seems like the data in the fields are only formatted correctly if there are no spaces in the string. Why is this? How do we correctly add styles to fields so that all the fields' data are styled? -- _________________ Rolf @ Questus ans |
#4
|
|||
|
|||
What type of fields are they and what code are you using to populate them?
-- Hope this helps. Please reply to the newsgroup unless you wish to avail yourself of my services on a paid consulting basis. Doug Robbins - Word MVP "Rolf Barbakken" wrote in message ... No I am not using this switch. Doesn't this mean that I have to enter "\*Charformat" into every field and format the first character in the field? I have about 250 templates that I have to convert from one style without fields into a style using fields, and entering "\*Charformat" for every field is very time consuming -- _________________ Rolf @ Questus ans "Doug Robbins" wrote in message ... Are you using the Charformat switch? With it, you apply the desired formatting to the first character of the Field code. -- Hope this helps. Please reply to the newsgroup unless you wish to avail yourself of my services on a paid consulting basis. Doug Robbins - Word MVP "Rolf Barbakken" wrote in message ... We're making a template with fields. In this template we have a field that we select and give a style. The template have macros that fill fields with data. As we create a new document based on the template, the fields are filled with data (strings) correctly, but the style is only applied correctly to the the first word of the string in the field data. Seems like the data in the fields are only formatted correctly if there are no spaces in the string. Why is this? How do we correctly add styles to fields so that all the fields' data are styled? -- _________________ Rolf @ Questus ans |
#5
|
|||
|
|||
They are custom fields for a CRM-system. I have no access to the code right
now. But we're using your first suggestion of using \*Charformat. The progress is good enough Thanks again, Doug. "Doug Robbins" wrote in message ... What type of fields are they and what code are you using to populate them? -- Hope this helps. Please reply to the newsgroup unless you wish to avail yourself of my services on a paid consulting basis. Doug Robbins - Word MVP "Rolf Barbakken" wrote in message ... No I am not using this switch. Doesn't this mean that I have to enter "\*Charformat" into every field and format the first character in the field? I have about 250 templates that I have to convert from one style without fields into a style using fields, and entering "\*Charformat" for every field is very time consuming -- _________________ Rolf @ Questus ans "Doug Robbins" wrote in message ... Are you using the Charformat switch? With it, you apply the desired formatting to the first character of the Field code. -- Hope this helps. Please reply to the newsgroup unless you wish to avail yourself of my services on a paid consulting basis. Doug Robbins - Word MVP "Rolf Barbakken" wrote in message ... We're making a template with fields. In this template we have a field that we select and give a style. The template have macros that fill fields with data. As we create a new document based on the template, the fields are filled with data (strings) correctly, but the style is only applied correctly to the the first word of the string in the field data. Seems like the data in the fields are only formatted correctly if there are no spaces in the string. Why is this? How do we correctly add styles to fields so that all the fields' data are styled? -- _________________ Rolf @ Questus ans |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Formatting repeating data | Microsoft Word Help | |||
Enter data in 1 text form field & have multiple locations fill | Microsoft Word Help | |||
Retaining formatting on a single line after entering data in field | Page Layout | |||
Word Field Codes in Excel data file | Mailmerge | |||
How do I insert and format part of a data field in a Word document | Microsoft Word Help |