QR code generator for multiple worksheets

nkendri24

New Member
Joined
May 22, 2018
Messages
16
I have a working QR code generator that works for one page put now I want to have this QR code populate cells in another worksheet. the code is in QRTemplate worksheet and the second worksheet I would like to have the QR code Generate is QRLabel worksheet. The code is:

Private Sub Worksheet_Change(ByVal Target As Range)
Dim r As Range, c As Range

On Error Resume Next
With Application
.ScreenUpdating = False
.EnableEvents = False
.Calculation = xlCalculationManual
End With

Set r = Intersect(ActiveSheet.Columns(6).Precedents, Target)
If r Is Nothing Then GoTo EndSub

For Each c In r.Rows
With c
ActiveSheet.Shapes("QR " & .Row).Delete
QRcodeToPicUTF8 Cells(.Row, "F"), Environ("temp"), _
"QR " & .Row, Cells(.Row, "G")
End With
Next c

EndSub:
With Application
.ScreenUpdating = True
.EnableEvents = True
.Calculation = xlCalculationAutomatic
End With
End Sub


Another issue is that the second worksheet the QR labels will be spaced. The first QR code will be in cell A1 the second in A3 and so on till A41(22 QR code) then repeat in E1 and repeat at I1 and repeat at M1 till there is 83 QR codes.

Or if there is a easier alternative let me know thank you in advance for any help.
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.

Forum statistics

Threads
1,223,900
Messages
6,175,276
Members
452,629
Latest member
SahilPolekar

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