Cancel printing VBA code doesn't works on excel 2010
I have following code that only works on excel 2007 but not in excel 2010
Private Sub Workbook_BeforePrint(Cancel As Boolean)
If Worksheets(2).Range("E67").Value <> "COMPLETED" Then
Cancel = True
MsgBox ("Kui ra iso nge-print, bereskeun heula gawena!!!")
What should I do?
Anwsers to the Problem Cancel printing VBA code doesn't works on excel 2010
When I try your code in Excel 2010, it works correctly.
Make sure that macros are enabled when you open the workbook in Excel 2010, for example by storing it in a trusted location for Excel.
System Update Readiness Command: To Fix Cancel printing VBA code doesn't works on excel 2010
On running the System Update readiness Command, it will Detect & Replace Incorrect Registry data with the Correct one. Which may ultimately Solve Cancel printing VBA code doesn't works on excel 2010 in Windows.
- Open CMD as Administrator by Simply Right Clicking on Start button > Command Prompt (Admin).
- Now Type or Copy paste "DISM.exe /Online /Cleanup-image /Scanhealth" and hit Enter,
- Now again Type or Copy paste this "DISM.exe /Online /Cleanup-image /Restorehealth" and hit Enter.
- Close the Command Prompt Window because we are done.
Reboot your Windows & see if error Cancel printing VBA code doesn't works on excel 2010 is still there.
Note: Your administrator's password might be needed.
Another Safe way to Fix the Problem: Cancel printing VBA code doesn't works on excel 2010:
How to Fix Cancel printing VBA code doesn't works on excel 2010 with SmartPCFixer?
1. Click the button to download Error Fixer . Install it on your system. Open it, and it will perform a scan for your system. The errors will be shown in the scan result.
2. After the scan is done, you can see the errors and problems which need to be repaired.
3. When the Fixing part is finished, your computer has been speeded up and the errors have been fixed
Related: Best Way to Update & Download Toshiba Satellite A205-S4607 Speech System v.1.00.2520 driver,[Solved] Download Toshiba Satellite C655D-S9511D Face Recognition v.3.1.17 driver,How to Download Toshiba Satellite L655-S5106BN Media Controller Plug-in v.184.108.40.206 driver,Download Toshiba Satellite L845-SP4281RM PC Health Monitor v.220.127.116.11 driver,How Can You Update & Download Toshiba Satellite Pro U500-EZ1321 Web Camera Application v.18.104.22.168 driver,Best Way to Download NVidia GeForce 6100 VGA Driver v.304.51 Certified,How Can You Update & Download NVidia GeForce 9300/nForce 730i VGA Driver v.310.19 Certified,Method to Download NVidia GeForce GT 330M Driver v.340.65,How Can I Update & Download NVidia GeForce GTX 590 Driver v.280.26 WHQL,Method to Download NVidia Tesla C2050 Driver v.319.17,Way to Download RealTek RTL8100C(L) Driver v.5.01,Way to Download RealTek RTL8100E Drivers v.694,Way to Update & Download RealTek RTL8101L Auto Installation Program v.6.110 driver,Method to Update & Download RealTek RTL8111G PXE and RPL ROM code v.2.58 driver,How to Update & Download RealTek RTL8411B(N) Driver v.10.003,Best Way to Update & Download ASUS A53SV nVidia Graphics Driver v.22.214.171.12486,Method to Herunterladen ASUS K75VJ Intel Rapid Storage Technology Treiber v.126.96.36.1990,How Can You Update & Download ASUS CG8580 Intel Chipset Driver v.188.8.131.529,Method to Update & Download ASUS K41VD Intel INF Update Driver v.184.108.40.2065,Way to Update & Download ASUS Pro70T NB Probe v.3.0.0026 driver
Read More: [Anwsered] cannot download i-mesh, error: not compatible with windows,How to Fix - cannot create a restore point on Windows 7 (Dell Inspiron 5110)?,How to Fix - Cannot email picture from Windows Photo Viewer.?,Troubleshooting:Cannot find the download from msdn. Error,How Can I Fix - cannot connect to the internet difficult question?,Can't download PP templates automatically to Windows 7 w/IE 8,Can't change drive letter - Vista,Can't change homegroup sharing permission,Can't connect XP shared printer to Win7 except as a local printer.__,Can You Connect the LAN Adapter for Wii On your Windows 7 Laptop?