0
날짜를 물어 보는 팝업 상자에 다음 코드가 있습니다. 예 : 2013 년 4 월 5 일, 자동으로 긴 날짜 형식으로 변환하는 방법은 무엇입니까?짧은 날짜를 긴 날짜로 변환하십시오. 팝업 상자 입력란
나는
strUserResponse = FormatDateTime(Date, vbLongDate)
을 시도하지만 이전 포스트에서 언급 한 바와 같이 단지
Inputbox
가를 얻을 수있는 가장 좋은 방법은 아니라고
감사
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