Aug 16 2024 01:33 AM
Hi.
I use software called WorkflowMax which uses MSWord format for custom Invoice Templates. There is a type of Invoice which shows several columns of data for each item on the invoice inlcuded Original Quoted Price, what was Previously Claimed, what's being claimed on the current invoice, and what is remaining as outstanding.
I have managed to work out the code to not show a "0.00" for any particular field when the value of the field is Zero so that part is all good. As below in the third line where there is no "Claimed Incl This Invoice" for the Task "Consulting RMA Ecology", nothing prints.
However, I need conditional code so that I can not show all 4 columns of a specific line, if just one of those columns is Zero. ie. if Nothing is being claimed on part of the quote in an invoice, then I don't want to print the other columns for that line, which do still have values (Task Name / Quoted / Previously Claimed/ Claimed Incl This Invoice / Balance Remaining). So as an example, to not show the Quoted column it will need to look and see if there is a zero value in the "This Invoice" column. I've really had a go with it but just can't make it work!
Aug 19 2024 04:05 AM
@helens63 Are you saying that you want to conditionally hide some of the columns, INCLUDING the header of the column. If that is the case, you will need to conditionally display variations of the table with each variation only containing the wanted columns.
Aug 19 2024 02:16 PM
@Doug_Robbins_Word_MVP Hi Doug, thank you for entering this conversation. My understanding of the terminology might be incorrect. When you say the header row I'm thinking that means the titles, or the first row of the table. I don't want to hide that. It will be fine to display the header row, even if some of the rows underneath are empty. But for any particular row, if the Current Claim is 0, then we don't want to display anything on that row. I've found it easy enough to stop the Current Claim part not showing, but not the other columns for that row. The owner is thinking that if there is no Current Claim for part of the Quote, then he doesn't want to show the original Quoted price, what's been claimed before and what's still outstanding for that particular part of the quote, on that invoice.
Aug 19 2024 03:26 PM
@helens63 Sorry, I have not been able to determine exactly what the criteria is, which might be me, or it might be because you have used a term "Current Claim", rather than the relevant MergeField name. Can you re-phrase the requirement, making use of the actual MergeField names.
I am not sure how WorkflowMax processes the data, but the Many to One facility of my MergeTools Add-in, which can be used from creating output for items such as a multi-line invoice, the test for a field that is empty must be for " " rather than "".
Aug 19 2024 04:59 PM
@Doug_Robbins_Word_MVP Hi Doug. I'm sorry I'm not much help myself. I've done another snip with the merge field codes revealed but I'm unsure if that's what you mean. The Merge Field that is showing as highlighted in grey is the problem one that doesn't work. I'm trying to say in that field to look at the field under "This Invoice" heading and if that one is Zero, then not to print.
Aug 19 2024 05:47 PM
Aug 19 2024 05:52 PM
Aug 19 2024 07:10 PM
Aug 19 2024 07:35 PM
@helens63 Can you show a screen shot of the mail merge main document with the field codes displayed, or better, upload a copy of that document and the data source.
Aug 19 2024 07:57 PM
Thanks Doug. I've attached the template and also made a quick video of within the software so you can see more - I hope that helps. Here's the link to the video
Aug 20 2024 01:18 AM
@helens63 You must either use the Insert MergeField facility or CTRL+F9 to insert the field delimiters and type the fieldname inside them. You cannot use the { and } characters that can be inserted using those keys on the keyboard.
Aug 20 2024 01:58 PM
@Doug_Robbins_Word_MVP Thanks Doug. I've always done it that same way, but I found the field code and checked - perhaps I have not understood that part?
Aug 20 2024 03:31 PM
@helens63 I have uploaded a document in which I have corrected the field coding in the first table.
Aug 22 2024 04:18 PM
Aug 22 2024 04:26 PM
@helens63 If you can export the data to Excel, you could use the Many to One facility on my Merge Tools Add-in that is contained in the MERGE TOOLS ADD-IN.zip file that you can download from:
Extract the files from the archive and read the:
“READ ME – Setting up and using the Merge Tools Add-in.pdf
to see how to install and use the various tools.
Using those tools, it is possible to perform the following types of merge that cannot be done with Mail Merge “out-of-the-box”:
The requirements for using the system are:
The MergeTools Add-in will NOT work with the “New Outlook”, which is just a re-badged version of Windows Mail and like its predecessor, it does not support automation and hence will not send the messages created by the MergeTools Add-in.
Be aware, that any messages that you had tried to send with the “New Outlook” will have been placed in the Outbox of the original Outlook and they will be sent as soon as you revert to that version of Outlook. If you do not want that to happen, you should put Outlook Off-line, or disconnect your computer from the Internet.