Excel 2010 VBA创建日期 [英] Excel 2010 VBA creation date

查看:176
本文介绍了Excel 2010 VBA创建日期的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在Excel 2010中使用VBA获取当前工作簿文件创建日期?我浏览了ThisWorkBook的所有属性我似乎没有找到那里的东西。

How to get the current workbook file creation date using VBA in excel 2010? I browsed all the properties of ThisWorkBook I don't seem to find something there.

推荐答案

MsgBox ActiveWorkbook.BuiltinDocumentProperties("Creation Date")
'Output: 25.07.2011 14:51:11 

这适用于Excel 2003,没有2010来测试它。
链接到 MSDN Doc 对于Office 2010,还有一个列表和其他可用的属性。

This works for Excel 2003, don't have 2010 to test it. Link to MSDN Doc for Office 2010, there is a list with other available properties on there, too.

这篇关于Excel 2010 VBA创建日期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆