Mail Merge - Blank Spaces

kamccar

New Member
Joined
Jul 23, 2019
Messages
18
Hello,

I am working in a mail merge document, and I need the output to look something like this:

Vacation:

Life Insurance:

Disability:

etc.

However, the issue is that sometimes the fields are blank, and if they're blank it messes up the spacing. I want the document to ignore any blanks, but also format correctly. I have done research and currently have this:

{MERGEFIELD Vacation \b"
"}{MERGEFIELD Life Insurance \b"
"}{MERGEFIELD Disability \b"
"}

I pressed ALT F9 to do this, and although the spacing now works, if I place the merge field that follows directly after the closing bracket as I have it now, it skips the record of data that comes after the closing bracket when I preview the mail merge. If I put the merge field on a new line (the line after the closing bracket) the data shows up, however the spacing is still off.

I want the document to evenly space each field even if there is no data.

Any help would be SO greatly appreciated!!!
 
Last edited by a moderator:

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
How is the output supposed to change when 'Life Insurance', for example, is empty, compared to when the same field contains data? Your post so far doesn't give any indication of this. Note also that previews are not a reliable indicator of the final output.
 
Upvote 0

Forum statistics

Threads
1,213,527
Messages
6,114,142
Members
448,551
Latest member
Sienna de Souza

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top