Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 10-19-2020, 12:38 PM
Purfleet Purfleet is offline Select next available mailing label by row and column? Windows 10 Select next available mailing label by row and column? Office 2019
Expert
 
Join Date: Jun 2020
Location: Essex
Posts: 345
Purfleet is a splendid one to beholdPurfleet is a splendid one to beholdPurfleet is a splendid one to beholdPurfleet is a splendid one to beholdPurfleet is a splendid one to beholdPurfleet is a splendid one to beholdPurfleet is a splendid one to behold
Default


i forgot you need the varible declaration at the top

Public ROW As Integer, COL As Integer

I then clicked om, create new label, selected Label 1, Marking 1 and ticked the outer address box then 3 in row and 1 in column

As i said i am not familar with your form or the code, so i assume there is a reason you went for a shape rather than text? Text seem more obvious to me but you call.
Attached Images
File Type: jpg Screenshot 2020-10-19 203600.jpg (25.7 KB, 30 views)
Reply With Quote
  #2  
Old 10-19-2020, 12:50 PM
kiwimtnbkr kiwimtnbkr is offline Select next available mailing label by row and column? Windows 10 Select next available mailing label by row and column? Office 2016
Advanced Beginner
Select next available mailing label by row and column?
 
Join Date: Oct 2017
Posts: 69
kiwimtnbkr is on a distinguished road
Default

The shapes are there more for the visual effect and so I can make sure they are the right size when compared to the real label sheet.

If I understand you right, you're saying that I would be better getting rid of the shapes and just leaving the cells on the outer envelope?

What, if any, changes would needed to insert just the text as you suggested?
Reply With Quote
  #3  
Old 10-19-2020, 11:39 PM
kiwimtnbkr kiwimtnbkr is offline Select next available mailing label by row and column? Windows 10 Select next available mailing label by row and column? Office 2016
Advanced Beginner
Select next available mailing label by row and column?
 
Join Date: Oct 2017
Posts: 69
kiwimtnbkr is on a distinguished road
Default

Have had a chance to have get the code in the right places - should have clicked that having 'Call labels' was meant to be in a module. I originally had it in the UserForm code...whoops!

Couple of things that I hope you can assist with resolving... the 'to address' for the outer envelope label is getting picked up from the ToFrom worksheet when it should be getting picked up from Column D on the Inner Envelope worksheet.

Selecting Column 1 works fantastic but nothing appears if Column 2 is selected?

And there is no 'from address' appearing on the outer envelope label?

Have reattached an updated worksheet with the coding you have kindly assisted with so far.
Attached Files
File Type: xltm Mailing Label v2 - 20_10.xltm (77.0 KB, 12 views)
Reply With Quote
  #4  
Old 10-20-2020, 01:23 PM
Purfleet Purfleet is offline Select next available mailing label by row and column? Windows 10 Select next available mailing label by row and column? Office 2019
Expert
 
Join Date: Jun 2020
Location: Essex
Posts: 345
Purfleet is a splendid one to beholdPurfleet is a splendid one to beholdPurfleet is a splendid one to beholdPurfleet is a splendid one to beholdPurfleet is a splendid one to beholdPurfleet is a splendid one to beholdPurfleet is a splendid one to behold
Default

I must admit i am no expert when it comes for forms, never really had the need. I dont mind trying to help, but please bear this in mind

Quote:
Couple of things that I hope you can assist with resolving... the 'to address' for the outer envelope label is getting picked up from the ToFrom worksheet when it should be getting picked up from Column D on the Inner Envelope worksheet.
Yes i used the data already populated in the sheet to save going back to 'look' for it in the Inner Envelope sheet. The first 2 lines in the lables sub is where we copy the address - some where in the form there is a lookup to find the correct row to copy the address over. I dont know where that is as i am not familiar with the code, but you code use that if you want to copy from the Inner evelope sheet

Quote:
Selecting Column 1 works fantastic but nothing appears if Column 2 is selected?
I had the end ifs wrong, try

Code:
If Col = 1 Then
    Worksheets("Outer envelope").Range("a" & Row).PasteSpecial Paste:=xlPasteValues
    End If
If Col = 2 Then
     Worksheets("Outer envelope").Range("b" & Row).PasteSpecial Paste:=xlPasteValues
    End If
Quote:
And there is no 'from address' appearing on the outer envelope label?
Again i have not looked at this part as it is more or less a repeat of the other code, just copying a different shape/range
Reply With Quote
  #5  
Old 10-20-2020, 08:09 PM
kiwimtnbkr kiwimtnbkr is offline Select next available mailing label by row and column? Windows 10 Select next available mailing label by row and column? Office 2016
Advanced Beginner
Select next available mailing label by row and column?
 
Join Date: Oct 2017
Posts: 69
kiwimtnbkr is on a distinguished road
Default

Quote:
Originally Posted by Purfleet View Post

I had the end ifs wrong, try...
Thank you! that did the trick for that bit - and I now have a much better understanding of how and where to use End If statements

And awesome help with steering me in the right direction for the rest of it - very much appreciated indeed as I will tinker to get the rest of it working now that I know what code it needs and where to look for it

Reply With Quote
  #6  
Old 10-20-2020, 11:15 PM
kiwimtnbkr kiwimtnbkr is offline Select next available mailing label by row and column? Windows 10 Select next available mailing label by row and column? Office 2016
Advanced Beginner
Select next available mailing label by row and column?
 
Join Date: Oct 2017
Posts: 69
kiwimtnbkr is on a distinguished road
Default

Where I am currently stuck....
Attached Files
File Type: xltm Mailing Label v2 - 20_10.xltm (86.5 KB, 9 views)
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to select multiple criteria from same column? LearnerExcel Excel 1 03-10-2018 07:41 AM
move the milestone label to left of column wilster31 Project 0 07-31-2017 07:58 AM
Error message in pivot when i try drag and placing a column in the row label olybobo Excel 0 05-10-2016 02:05 PM
Select next available mailing label by row and column? A non mailing label? markg2 Mail Merge 1 12-22-2011 04:07 PM
Select next available mailing label by row and column? Mailing label help needed... Lisa Cotton Word Tables 1 04-14-2011 04:49 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 07:42 PM.


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