Greetings,
recently I programmed a macro thats supposed to print labels via our Dymo LabelWriter 450. It needs a special pagesize setup in VBA in order to work:
Where 220 is the index of the pagesize for this printer. I verified that by recording a macro and setting the pagesize manually.
Running the macro on my machine works just fine. The pagesize is applied correctly and the text appears perfectly centered on the printed labels, as intended.
The actual problem occurs when running this macro on my colleague's machine (they have an identical Dymo printer connected). The text is shifted to almost outside the border of the label.
This does not happen however if I manually step through the macro (F8) on my colleague's machine. Then it prints the label just fine.
So I am somewhat confused at this point. I feel like the "PaperSize" parameter is skipped when running the macro normally. If there is anything I can try or should check, please let me know! Any help is greatly appreciated.
SY24
recently I programmed a macro thats supposed to print labels via our Dymo LabelWriter 450. It needs a special pagesize setup in VBA in order to work:
VBA Code:
With ActiveSheet.PageSetup
.PaperSize = 220
End With
Running the macro on my machine works just fine. The pagesize is applied correctly and the text appears perfectly centered on the printed labels, as intended.
The actual problem occurs when running this macro on my colleague's machine (they have an identical Dymo printer connected). The text is shifted to almost outside the border of the label.
This does not happen however if I manually step through the macro (F8) on my colleague's machine. Then it prints the label just fine.
So I am somewhat confused at this point. I feel like the "PaperSize" parameter is skipped when running the macro normally. If there is anything I can try or should check, please let me know! Any help is greatly appreciated.
SY24