Error During Print call

E_DPSG

Board Regular
Joined
Jul 17, 2008
Messages
82
Hi -

I am receiving the following error when calling the print function:

"Can't Enter Break Mode at this time"

With the options to : [Continue] [End] [//Debug//] [Help]

The debug option is disabled.

Code:
Code:
ActiveSheet.ExportAsFixedFormat _
                Type:=xlTypePDF, _
                FileName:=FName, _
                Quality:=xlQualityStandard, IncludeDocProperties:=True, _
                IgnorePrintAreas:=False, OpenAfterPublish:=False

FName is a string passed to the function to print with a .pdf extension and contains full path which is valid.

I thought this might have been caused by stepping through the code, but that turned out to not be the case.

When you go to clear by either Continue or End, the VBA terminates and does not pick up where it left off.

As this is part of a loop (multiple tabs, multiple passes, etc), it presents a problem.

Any ideas as to what may cause this?
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.

Forum statistics

Threads
1,214,622
Messages
6,120,576
Members
448,972
Latest member
Shantanu2024

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