Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 04-25-2023, 07:48 AM
gmayor's Avatar
gmayor gmayor is offline How to get different labels depending on data? Windows 10 How to get different labels depending on data? Office 2019
Expert
 
Join Date: Aug 2014
Posts: 4,137
gmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud of
Default

Just enter all the relevant fields on the label. If there is no data in the field for a particular record nothing will print on the label.

I there are gaps, then conditionally insert the field e.g.
{ MERGEFIELD CUSTOMER }{IF { MERGEFIELD FIELDNAME1 } <> "" "
{MERGEFIELD FIELDNAME1 }" }{IF { MERGEFIELD FIELDNAME2 } <> "" "
{MERGEFIELD FIELDNAME2 }" }ETC




Mail merge labels with Microsoft Office covers the merge process, although originally written for an earlier Word version, the process remains similar.
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com
Reply With Quote
  #2  
Old 04-25-2023, 08:46 AM
Jbro00 Jbro00 is offline How to get different labels depending on data? Windows 11 How to get different labels depending on data? Office 2021
Novice
How to get different labels depending on data?
 
Join Date: Apr 2023
Posts: 3
Jbro00 is on a distinguished road
Default

Quote:
Originally Posted by gmayor View Post
Just enter all the relevant fields on the label. If there is no data in the field for a particular record nothing will print on the label.

I there are gaps, then conditionally insert the field e.g.
{ MERGEFIELD CUSTOMER }{IF { MERGEFIELD FIELDNAME1 } <> "" "
{MERGEFIELD FIELDNAME1 }" }{IF { MERGEFIELD FIELDNAME2 } <> "" "
{MERGEFIELD FIELDNAME2 }" }ETC


Mail merge labels with Microsoft Office covers the merge process, although originally written for an earlier Word version, the process remains similar.
I'm still not quite understanding, I could upload the files I'm currently using for reference if that would help.
If create a table with customer information and rows for orders I can imput that onto the labels to insert customer info, sale1, sale2, sale2, sale4, sale5, next customer info, etc.
When I do it in this fashion if the customer bought two things it leaves me with 3 blank labels when I'm ready to print. This would lead to many wasted labels.
I'm not sure if this is the same way you're explaining to do it?
I really appreciate your time, do you have any recommended places I can look to become more familiar with vba and these types of situations? I feel bad basically asking you to teach me so I can understand the advice that you are giving. I don't mind learning more and getting a better understanding and then coming back to this thread to move further but I'm having a hard time finding a good place to learn the information.
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
creating multiple data rows, for labels based on a cell value josbor01 Excel Programming 3 01-02-2018 02:04 PM
How to get different labels depending on data? Populating ranking depending upon ranges of previous cell's data sryder Excel 5 04-07-2016 03:37 PM
Method to remove overlap in data labels for single series omahadivision Excel Programming 0 12-28-2012 08:55 PM
Powerpoint: adding data to trend lines w/o data labels HaiLe PowerPoint 0 04-11-2011 09:21 AM
Show different Data depending on Imput Value Aton Word 0 09-15-2010 03:43 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 12:50 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft