Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 01-20-2022, 05:48 PM
Jerry In Houston Jerry In Houston is offline Error 4120 when using a printing macro Windows 11 Error 4120 when using a printing macro Office 2016
Novice
Error 4120 when using a printing macro
 
Join Date: Jan 2022
Location: Texas
Posts: 3
Jerry In Houston is on a distinguished road
Question Error 4120 when using a printing macro

I use a macro to print several multi page documents. My printer will not do what I want it to do so my macro prints the document one page at a time: Here is a bit of the code;
Selection.GoTo What:=wdGoToPage, Which:=1
The print routine
Selection.GoTo What:=wdGoToPage, Which:=2


The print routine
Selection.GoTo What:=wdGoToPage, Which:=3
The print routine
Selection.GoTo What:=wdGoToPage, Which:=4 ==== The error occurs
I get an error 4120 Bad Prameter
All of these documents are over 30 pages long so there is a page 4. I have used a counting loop for the “Which:=” number but is still throws the error when the value = 4.

Any Help??
Reply With Quote
 

Tags
error 4120 when pprinting



Similar Threads
Thread Thread Starter Forum Replies Last Post
Word template with Macro keeps getting an error ''Run-time error 5941'' Marcel Word VBA 3 12-17-2019 04:55 PM
Error 4120 when using a printing macro Insufficient memory error when printing to a macro Rockystock Word VBA 8 10-21-2016 07:43 AM
Error 4120 when using a printing macro Runtime Error 4120 in Word 2007 macro Frankwlc Word 5 11-28-2011 01:54 AM
Error in printing callkalpa Word 0 09-21-2010 07:35 PM
Error message when printing e-mails nolson Outlook 0 01-02-2006 09:50 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 03:54 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft