MUKESHY12390
Well-known Member
- Joined
- Sep 18, 2012
- Messages
- 901
- Office Version
- 2013
- 2011
- 2010
- 2007
- Platform
- Windows
Hello.....Frnds
M trying to put ms value in Range("A1") but when i run the Macro2 instead of date it showing Default time 12:00:00 AM, I dont' knw why .?
Pls help me ....Thanks IN Advance!
[/code]
M trying to put ms value in Range("A1") but when i run the Macro2 instead of date it showing Default time 12:00:00 AM, I dont' knw why .?
Pls help me ....Thanks IN Advance!
Code:
Sub macro1()
Dim ms As Date
MsgBox ms
Range("A1").Value = ms
End Sub
Sub macro2()
Dim ms As Date
ms = InputBox("Enter Your Date ")
MsgBox ms
Call macro1
End Sub
'' M trying to put ms value in Range("A1") but instead of date it showing Default time 12:00:00 AM End Sub
[/code]
Last edited: