print quality

birdman

Board Regular
Joined
Oct 11, 2005
Messages
187
Is there code to set the print quality in the page setup to its maximum number?
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
Code:
    With ActiveSheet.PageSetup
        .PrintQuality = 600
    End With

however, as max print quality is printer dependent, you will have to test with trial and error to see what suits you
 
Upvote 0
Hi,

I would keep things simple, like this
Code:
Option Explicit
 
Sub SetHighestPrintQuality()
'Erik Van Geit
'080807
 
'simple brute force :-)
'any other code will be very complicated
 
Dim i As Long
 
On Error Resume Next
    With ActiveSheet.PageSetup
        For i = 1 To 5
        .PrintQuality = 75 * 2 ^ i
        Next i
    End With
End Sub
kind regards,
Erik
 
Upvote 0
The code works. The reason I ask is because someone else wrote this code on their computer and their computer had the option for 1200. My computer only has the option for 600. So when I ran there code I got an error.

I am wondering why you have 75*2....why not just 150? Will I have to add additional i values to get up to 1200? like i = 8?
 
Upvote 0
if you want, you can let go i to 99999 :-)

currently the code tries to get from 75 * 2^1=150 till 75 * 2^5 = 75*32 = 2400 dpi
looks enough to me
could have started with i = 2 or 3, doesn't matter

does it? :biggrin:

byes,
Erik
 
Upvote 0
Sorry Erik when I was reading the code really fast I thought it was 75*2*i not 75*2^i. My mistake. Makes sense now. Thanks alot!!
 
Upvote 0

Forum statistics

Threads
1,222,682
Messages
6,167,612
Members
452,123
Latest member
tstefanakis

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