Forum Discussion
Replace value of a mapped field in word
Hi all, I have a use case, where there is a mapped field in word. This document is being used as a template document in another system. But I want to replace all commas in the field value with ^p or line break when I pass the field values to the template document. Would it be possible.
Thanks in advance.
8 Replies
Nimmyraj How are the field values being "passed" to the template? If you are using VBA, you could use the Replace function.
ValueforTemplate = Replace(SourceValue, ",", vbCr)
- NimmyrajCopper Contributor
Doug_Robbins_Word_MVP Hi Doug, thanks for your reply.. we are passing it as a field value from MFiles system. This document is being used as template document in our MFiles system
Nimmyraj If you mean M-Files as at https://www.m-files.com, I would suggest that you contact the customer support at https://www.m-files.com/about/contact/