0 votes
in VBA by Beginner (35 points)
I have been working on an extensive Excel gradebook system for the school I work at, and just recently figured out how to use API code to print duplex. It seemed to work perfectly, but then I noticed that on one sheet (it's different than the others) it wasn't working. I started to troubleshoot, and realized that if I hadn't printed from that sheet since opening the file, then it wouldn't take my request to print duplex or simplex but instead it would print the previous printer setting from whatever job I had just printed (duplex or simplex). But after printing once, the code works perfectly. So I'm still trying to troublshoot to identify the exact scenario or to see if it is a code issue (but since it does work after printing the first time I don't think it's a coding issue). Does anyone know if there is an issue with the printing API and Excel? Are there any thoughts I could try to get around this problem? i am open to suggestions. If necessary I can create a file of fake data to demonstrate, but I'm not sure how I would upload it here. I posed this question also on Excelforum.com but had no responses.
by Beginner (35 points)
After various tests, I did determine that the issue was my computer. It works perfectly with another computer. Anyone have any thoughts?

Please log in or register to answer this question.

Welcome to wellsr Q&A
wellsr Q&A is the VBA and Python programming community that rewards you for learning how to code.

Getting Started
Register
VBA Cheat Sheets (On Sale Now)

Earn free prizes for asking VBA and Python questions and for answering questions asked by others in our community.

Looking for something else? Hire our professional VBA Help, instead.

What makes us different?
Our points system rewards you with a chance for free gifts based on the quality of your questions and answers. All you have to do is post and you could get rewarded, like these members:

Hightree $10 Amazon Gift Card
Thales1 $10 Amazon Gift Card
runfunke $10 Amazon Gift Card
coolag $10 Amazon Gift Card
Siew Hun $10 Amazon Gift Card

So, why don't you join us? It really is an encouraging way to motivate members in our VBA and Python community.

Register

For more programming tips visit the VBA Tutorials Blog and the Python Tutorials Blog.

...