EXCEL VBA : Loop is working but not refreshing before printing to PDF file

后端 未结 1 1472
终归单人心
终归单人心 2021-01-21 21:30

Good Morning everybody!

I have an issue concerning my VBA Code. I actualy just want to create a loop that prints PDFs that are based on the same background template (whi

相关标签:
1条回答
  • 2021-01-21 22:19

    According to comments, if Stop worked in the way that you need approx. 3 sec to get your picture loaded you could try to use a wait workaround which looks as follow:

    Dim Start As Single
    Start = Timer
    'wait 5 sec...
    Do While Start + 5 > Timer
        DoEvents
    Loop
    

    Add the code just before .ExportAsFixedFormat. Above I set waiting time to 5 sec. which you could change after some tests.

    0 讨论(0)
提交回复
热议问题