Update =getimage() inbetween VBA prints

Bajjonetaz

New Member
Joined
Sep 25, 2023
Messages
5
Office Version
  1. 365
Platform
  1. Windows
Hi MrExcel team!

I have a file, which I use in that way that I export data from a different system to excel. I later use the data and print article labels for our internal storage.

So I copy my data into the list which you can see in "excel2.png" and what I print is what is visible in "excel1.png"

The VBA runs and automatically prints everything from the list until the first blank, which works great.
However, the QR codes which I use to be able to scan the articles is not updating inbetween each of the prints completed by the VBA.

How can I get the VBA to update the QR codes inbetween the prints?


Sub MacroToPrint()
Application.Dialogs(xlDialogPrinterSetup).Show
Dim i As Long
Dim shD As Worksheet

Set shD = Sheets("Data")

For i = 2 To shD.Range("B:B").Find("*", , xlValues, xlPart, xlByRows, xlPrevious).Row
Application.Wait (Now + TimeValue("0:00:06"))
With Sheets("printsheet") 'Fit the name of your sheet to print
.Range("I3").Value = shD.Range("A" & i).Value
.PrintOut
End With
Next
End Sub



Thanks for your help in this matter
 

Attachments

  • excel1.png
    excel1.png
    44.6 KB · Views: 9
  • excel2.png
    excel2.png
    37.5 KB · Views: 8

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes

Forum statistics

Threads
1,223,886
Messages
6,175,196
Members
452,616
Latest member
intern444

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