VBA to print to PDF

klarowe

Active Member
Joined
Mar 28, 2011
Messages
389
I am not sure if this will be possible or not, but if anyone can help I would greatly appreciate it.
I want to add a button to this workbook I'm working on that when pressed will activate ToggleButton1, bring up a confirmation message box "Save-As (Cell A1 Value) teardown.pdf"(Yes/No)(No to cancel), then print to PDF into S:\SERVICE\Shop Teardown Reports\PDF Teardowns with a name of "(Cell A1 value) teardown"

Now here is where it gets difficult. Right now there are different ways that we can print to PDF depending on which computer is used. Some of them have "Adobe PDF" as the "printer" and others have "Primo PDF" as the printer because some of us have Adobe Acrobat, and others just have Adobe Reader.

Is this possible???
Thanks again for all the help!!!
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
Try looping thru the list of printers available until the

Right(PRINTERNAME,4) = " PDF"

That should solve that issue...
 
Upvote 0
I would love to do that, but up until I started working on this project (about 2 weeks ago) I had never even heard of a macro... so my over-all code writing is almost non-existant... lol. I really more need the entire code or at least a general idea that I can mess around with until I find something that works.. lol.
Thanks
 
Upvote 0
As much as I would love to write the code for you, I unfortunately do not have the spare time to do it.

You can learn the basics of VBA in less than a week and then use snippets off the web to fill in the blanks.

Good luck and sorry again I couldn't help further.
 
Upvote 0
Thats no problem. I've been taking snippets and working off them and I'm currently working on it, I just figured if someone has some spare time and can get me the general idea it would save a little time. No big deal though.
Thanks for the help!
 
Upvote 0

Forum statistics

Threads
1,224,599
Messages
6,179,828
Members
452,946
Latest member
JoseDavid

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