Disabling Print through Print Menu and Quick Print but allow my Macro to print still

sarahlynnette

New Member
Joined
May 14, 2014
Messages
6
Hi all. Okay so I'm probably what most of you would consider a newbie at VBA and I'm self taught on top of it. But I need some help as I have searched and searched and cannot find a macro that will do what I need. I have a macro that is attached to a button on each tab (they are time sheets) that prints the current worksheet and checks certain cells to speed the verification process up in my office. However, I would like to force people to have to use this button by disabling the print options through the file menu and the quick print. I have tried several different macros and none of them work or they disable my macro print as well.

If it helps, this is my macro that is attached to one of the tabs button.
Code:
Sub PrintItJuly()
If Range("G13") > 0 Then
Range("A51") = "INITIAL BY HOLIDAY WORKED TO APPROVE"
End If
If Range("F41") > 0 Then
Range("H51") = "X"
End If
If Range("J11") And Range("J19") > 0 Then
Range("H52") = "X"
End If
If Range("J11") And Range("J27") > 0 Then
Range("H52") = "X"
End If
If Range("J11") And Range("J35") > 0 Then
Range("H52") = "X"
End If
If Range("J19") And Range("J27") > 0 Then
Range("H52") = "X"
End If
If Range("J19") And Range("J35") > 0 Then
Range("H52") = "X"
End If
If Range("J27") And Range("J35") > 0 Then
Range("H52") = "X"
End If
Range("J53") = "=(I2*F40)+((I2*1.5)*F41)"
ActiveSheet.PrintOut
End Sub

I appreciate any assistance that can be offered and I ask for patience in explaining things because as previously mentioned I'm pretty new at this. Thanks again!
 
Last edited by a moderator:

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
It sounds like you need a macro that automatically disables any printing when the workbook is opened. Then you need a macro which which you manually run that will enable the printing, print and then disable the printing. You obviously know how to disable printing. Do you know how to enable printing?
 
Upvote 0

Forum statistics

Threads
1,224,801
Messages
6,181,047
Members
453,014
Latest member
Chris258

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