You are on page 1of 1

Code Script Excel QR Code:

Function Insert_QR(codetext As String) Dim URL As String, MyCell As Range Set MyCell =
Application.Caller URL = "https://chart.googleapis.com/chart?ch...
" & codetext On Error Resume Next ActiveSheet.Pictures("My_QR_" & MyCell.Address(False,
False)).Delete 'delete if there is prevoius one On Error GoTo 0
ActiveSheet.Pictures.Insert(URL).Select With Selection.ShapeRange(1) .PictureFormat.CropLeft
= 15 .PictureFormat.CropRight = 15 .PictureFormat.CropTop = 15 .PictureFormat.CropBottom =
15 .Name = "My_QR_" & MyCell.Address(False, False) .Left = MyCell.Left + 25 .Top = MyCell.Top
+ 5 End With Insert_QR = "" ' or some text to be displayed behind code End Function

Kata Kunci: kdnouivsdvsklk

You might also like