华枫论坛

华枫论坛 (http://www.chinasmile.net/forums/index.php)
-   IT交流 (http://www.chinasmile.net/forums/forumdisplay.php?f=10)
-   -   Excel 2007 Macro Question (http://www.chinasmile.net/forums/showthread.php?t=564591)

Impulse Dec 30th, 2012 00:28

Excel 2007 Macro Question
 
I wan to create a macro to print PDF with the file name filled automatically. What I tried is to record
record the copy a text in a cell
past into the "file name" when you print PDF file
stop recording.

Unfortunately, it is not working as what I intended. Any idea?

Thanks

美好的今天 Dec 30th, 2012 23:41

Google search "excel macro print to pdf".

Impulse Dec 31st, 2012 01:14

引用:

作者: 美好的今天 (帖子 4802394)
Google search "excel macro print to pdf".

Thanks for your hint. I browsed those post and seem there was no the solution. But I found the following description which is exactly what I wanted.

"The macro prints to PDF, but then it stops at the Save As stage, where I have to manually enter the name of the file and click Save. I obviously want the macro to automatically name the file with the contents of cell Z1. I then want it to then automatically press enter."

I am not IT guy, I only can do the macro with recording. I am stucking at copy the cell content to the file name.

Thank you


所有时间均为格林尼治时间 -4。现在的时间是 11:44


Copyright © 1999-2024 Chinasmile