Excel Macro freezes

pbinvers

New Member
Joined
Jun 12, 2008
Messages
2
I am taking data from a AB PLC and recorded it in excel. When a certain time is reached the macro prints to pdf and then should close out pdfcreator and clear all the data collected from the PLC. This whole time the PLC will be running. My problem occurs when it tries to close PDFCreator, it will freeze and when I end task it it gives me "Runtime error: 440; Automation error"

I have gotten the print to pdf to work for a excel sheet that isn't gathering data from a PLC, but I can't get it to work for the real thing. Some help would be nice, thank you.
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!

Forum statistics

Threads
1,214,620
Messages
6,120,559
Members
448,970
Latest member
kennimack

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