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

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.

Forum statistics

Threads
1,186,005
Messages
5,955,266
Members
438,188
Latest member
DLJ

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
Top