Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 03-21-2018, 07:10 PM
awluck awluck is offline Auto-Print Envelopes from Captured Text Windows 10 Auto-Print Envelopes from Captured Text Office 2016
Novice
Auto-Print Envelopes from Captured Text
 
Join Date: Mar 2018
Posts: 1
awluck is on a distinguished road
Default Auto-Print Envelopes from Captured Text

I am looking to print envelopes from a txt file with one click. Of course. Actually I have a sequence in my head, which follows, followed by a sample of the source data, followed by a prepared-for-printing variant. Comments would be appreciated. Somehow, I'm sure for heavy users this is an out of pocket widget. I apparently am not using the right search terms.

Sequence
1. Paste source info into notepad.
2. Save as known temporary filename.txt.
3. Open filename.txt with Word 2016
4. Move to top of document
5. Find and Replace all double Paragraph Marks with Double Paragraph Marks enclosing an Asterisk
6. Move to the Top of the Document
7. Advance to the first Asterisk
8. Select Everything after the first Asterisk until the Next Asterisk
9. Invoke Envelope Printing of the Selected Text
10. Move to the Next Asterisk
11. Repeat 8 - 10 Until No More Asterisks Are Found
End

I am looking to replace Steps 4 to 11 with a macro of some type, assuming the default printer has envelopes in a tray, the tray has been configured specifically for
envelope, such that selecting an address block and printing an envelope just pops the envelope into the receiving tray.


Sample Captured Data

heading Stuff

Name One
Address One A
Address One B
City One, State One Zip One

Name Two
Address Two A
City Two, State Two Zip Two

Name Three
Address Three A
Address Three B
Address Three C
City Three, State Three Zip Three

Name Four
Address Four A
Address Four B
Address Four C
City Four, State Four Zip Four

Name Five
Address Five A
Address Five B
City Five, State Five Zip Five

Name Six
Address Six A
Address Six B
Address Six C
City Six, State Six Zip Six

Name Seven
Address Seven A
Address Seven B
City Seven, State Seven Zip Seven

Name Eight
Address Eight A
Address Eight B
Address Eight C
City Eight, State Eight Zip Eight

Name Nine
Address Nine A
Address Nine B
City Nine, State Nine Zip Nine

Name Ten
Address Ten A
City Ten, State Ten Zip Ten

Name Eleven
Address Eleven A
Address Eleven B
City Eleven, State Eleven Zip Eleven


End of sample data set

Start of prepared-for-printing data set

heading Stuff
*
Name One
Address One A
Address One B
City One, State One Zip One
*
Name Two
Address Two A
City Two, State Two Zip Two
*
Name Three
Address Three A
Address Three B
Address Three C
City Three, State Three Zip Three
*
Name Four
Address Four A
Address Four B
Address Four C
City Four, State Four Zip Four
*
Name Five
Address Five A
Address Five B
City Five, State Five Zip Five
*
Name Six
Address Six A
Address Six B
Address Six C
City Six, State Six Zip Six
*
Name Seven
Address Seven A
Address Seven B
City Seven, State Seven Zip Seven
*
Name Eight
Address Eight A
Address Eight B
Address Eight C
City Eight, State Eight Zip Eight
*
Name Nine
Address Nine A
Address Nine B
City Nine, State Nine Zip Nine
*
Name Ten
Address Ten A
City Ten, State Ten Zip Ten
*
Name Eleven
Address Eleven A
Address Eleven B
City Eleven, State Eleven Zip Eleven
*



End of prepared-for-printing data set

Alternatively, I would appreciate a pointer or two to 1. a really good public code repository for examples, and/or 2. a nice online training site. I'm okay at picking up things once I see a well executed example or two.

Everyone says coding is the future. Guess I've put this off long enough.

Thanks for your attention.
Reply With Quote
  #2  
Old 03-22-2018, 07:46 AM
gmayor's Avatar
gmayor gmayor is offline Auto-Print Envelopes from Captured Text Windows 10 Auto-Print Envelopes from Captured Text Office 2016
Expert
 
Join Date: Aug 2014
Posts: 4,106
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 of
Default

I would have thought mail merge would be the way to go here - or you could use http://www.gmayor.com/Envelope_Label_Add_In.htm which will prinbt a selection of addresses as envelopes.
__________________
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
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Auto-Print Envelopes from Captured Text Envelopes always want to print on a full page instead of an envelope Guynoeyes Word 1 02-09-2017 09:51 AM
Auto-Print Envelopes from Captured Text Unable to print envelopes in Word 2010 & 2013 Delta223 Word 1 04-13-2013 12:15 AM
Pasting image captured with a java program 'on to clipboard' into MSWord 2007 is blur tarunkumarreddy Word 0 02-03-2012 09:42 PM
Auto-Print Envelopes from Captured Text Daily Auto Print bgreenfamily Word 5 08-29-2011 03:30 AM
Auto print each day bgreenfamily Word 0 08-12-2011 09:17 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 01:18 AM.


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