0
我有一个弹出框询问日期的代码如下:4/5/2013,如何自动将其转换为长日期格式?在弹出输入框中将短日期转换为长日期输入框
我试图
strUserResponse = FormatDateTime(Date, vbLongDate)
但它只是让我今天的日期
感谢
Public Function AskForDeadline() As String
Dim strUserResponse As String
strUserResponse = InputBox("Enter attribute_5: Survey Deadline - In Short Date Format Ex: 4/9/2012 Will convert to LOND date AUTOMATICALLY")
strUserResponse = FormatDateTime(Date, vbLongDate)
ActiveSheet.Cells(2, 9).Value = strUserResponse 'the 2, 9 is the cell reference for I2 - row 2, column 9.
End Function
感谢以上。我无法弄清楚如何以“更好的方式”将日期分配给特定的单元格 – xyz 2013-04-27 20:19:44