Excel vba Time Picker(仅限日期,不想要时间) [英] Excel vba Time Picker (date only, don't want time)
本文介绍了Excel vba Time Picker(仅限日期,不想要时间)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用时间选择器来选择日期。假设日期选择器名称是B_date,在我的vba中,我写了B_Date.value。
当我想使用MSGBOX显示其值时B_Date,它显示yyyy-mm-dd hh:mm:ss。但我只想展示yyyy-mm-dd。我该怎么办?
解决方案
试试VBA论坛,这个论坛适用于Visual Studio Net中的VB
I am using the time picker to select the date. Let say the date picker name is B_date and in my vba, I wrote B_Date.value.
When I want to display its value using MSGBOX B_Date, it shows yyyy-mm-dd hh:mm:ss. But I just want to display yyyy-mm-dd only. How can I do?
解决方案
Try the VBA forums, this forum is for VB in Visual Studio Net
http://social.msdn.microsoft.com/Forums/en-US/isvvba/threads
这篇关于Excel vba Time Picker(仅限日期,不想要时间)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文