Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 04-30-2021, 07:31 AM
komobu komobu is offline Barcode Font Macro Windows XP Barcode Font Macro Office 2010
Advanced Beginner
Barcode Font Macro
 
Join Date: Feb 2011
Posts: 34
komobu is on a distinguished road
Default

Graham;



This code is awesome! Wish I had your skills.
Reply With Quote
  #2  
Old 05-03-2021, 04:27 AM
komobu komobu is offline Barcode Font Macro Windows XP Barcode Font Macro Office 2010
Advanced Beginner
Barcode Font Macro
 
Join Date: Feb 2011
Posts: 34
komobu is on a distinguished road
Default

This code works great!

Now I am wondering about putting several fields in one qr code.

Instead of having 12 qr codes and scanning each one in, I am wondering about putting all 12 entries in one qr code and seeing if I can enter the page worth of data with one barcode scan instead of 12.

I will have to play with it and see how many fields of data I can add. There has to be a horizontal tab (chr(9)) between the fields. So it would look like:

Dim sTotalQR As String
sTotalQR = sEmail + chr(9) + sType + chr(9) + sInspector +chr(9) +sPin + chr(9) + sDate

Could you explain a couple of lines of code so I can try to grasp what is happening?
What does “Option Explicit” do at the top of the sub?

Usually I use “+” to string fields together. I notice you are using “&” as in
wdDoc.Fields.Add oCell, 99, Chr(34) & sBar & Chr(34) & Chr(32) & "QR" & " \t", False

What code is actually generating the qr? Is it just this part of the line?
& "QR" & " \t", False

So could I add
sTotalQR = sEmail + chr(9) + sType + chr(9) + sInspector +chr(9) +sPin + chr(9) + sDate & “QR” & “ \t”, False
right where the ‘oRng.delete line is (Line 110) is to get a total qr code?

Thanks again for all your help
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Barcode Font Macro Barcode Scanning Sueade Excel 1 11-11-2015 04:07 PM
Barcode Font Macro Looping Macro to Change Font, Font Size, and Give Heading 1 WH7262 Word VBA 1 08-26-2014 03:46 PM
Barcode Font Macro MICROSOFT barcode control -changing the barcode image in realtime artner0112 Excel 1 12-18-2011 09:33 AM
Barcode Font Macro Postnet Barcode Doc_man Mail Merge 1 09-29-2010 03:06 AM
barcode add ins ???? quince Office 2 11-11-2005 12:40 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 09:49 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