返回   华枫论坛 > ◆ 工作学习◆ > IT交流



发表新主题 回复
 
只看楼主 主题工具
旧 Dec 30th, 2012, 00:28     #1
Impulse
Member
级别:4 | 在线时长:37小时 | 升级还需:8小时级别:4 | 在线时长:37小时 | 升级还需:8小时级别:4 | 在线时长:37小时 | 升级还需:8小时级别:4 | 在线时长:37小时 | 升级还需:8小时
 
注册日期: Sep 2008
帖子: 83
Impulse is an unknown quantity at this point
默认 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
Impulse 当前离线  
回复时引用此帖
旧 Dec 30th, 2012, 23:41   只看该作者   #2
美好的今天
通信专家
级别:33 | 在线时长:1221小时 | 升级还需:71小时级别:33 | 在线时长:1221小时 | 升级还需:71小时级别:33 | 在线时长:1221小时 | 升级还需:71小时级别:33 | 在线时长:1221小时 | 升级还需:71小时级别:33 | 在线时长:1221小时 | 升级还需:71小时
 
注册日期: Jun 2005
帖子: 5,384
声望: 6745275
美好的今天 has a reputation beyond repute美好的今天 has a reputation beyond repute美好的今天 has a reputation beyond repute美好的今天 has a reputation beyond repute美好的今天 has a reputation beyond repute美好的今天 has a reputation beyond repute美好的今天 has a reputation beyond repute美好的今天 has a reputation beyond repute美好的今天 has a reputation beyond repute美好的今天 has a reputation beyond repute美好的今天 has a reputation beyond repute
默认

Google search "excel macro print to pdf".
美好的今天 当前离线  
回复时引用此帖
旧 Dec 31st, 2012, 01:14   只看该作者   #3
Impulse
Member
级别:4 | 在线时长:37小时 | 升级还需:8小时级别:4 | 在线时长:37小时 | 升级还需:8小时级别:4 | 在线时长:37小时 | 升级还需:8小时级别:4 | 在线时长:37小时 | 升级还需:8小时
 
注册日期: Sep 2008
帖子: 83
声望: 0
Impulse is an unknown quantity at this point
默认

引用:
作者: 美好的今天 查看帖子
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
Impulse 当前离线  
回复时引用此帖
发表新主题 回复

主题工具

发帖规则
不可以发表新主题
不可以发表回复
不可以上传附件
不可以编辑自己的帖子

启用 BB 代码
论坛启用 表情符号
论坛启用 [IMG] 代码
论坛禁用 HTML 代码



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

请尊重文章原创者,转帖请注明来源及原作者。
凡是本站用户自行发布的任何信息,皆不代表本站的立场,
华枫网站不确保各类信息的正确性和可靠性,也不承担由此而导致的任何直接或间接损失以及任何法律责任。

Copyright © 1999-2024 Chinasmile