This the beginning part of my code. In cell E4, I have a time stamp generated by another form control button.
The code below references cell E4 but always clears out the cell and I cant figure out why.
Dim Entered_User_Password As String
Dim Current_User_Password As String
Dim Current_Password_Date As Object
Dim Administrator_Password As String
Dim Date_Difference As Long
Dim New_User_Password As String
Range("E4").Select
Selection.Copy
Selection.PasteSpecial Paste:=xlPasteAll, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=False
Set Current_Password_Date = ThisWorkbook.Sheets("Sheet2").Range("E4")
Current_Password_Date.NumberFormat = "mm/dd/yy hh:mm"
Current_User_Password = ThisWorkbook.Sheets("PasswordSheet").Range("A65536").End(xlUp)
Current_Password_Date = ThisWorkbook.Sheets("PasswordSheet").Range("A65536").End(xlUp).Offset(0, 1)
Administrator_Password = "pswd"
Date_Difference = DateDiff("h", Now(), Current_Password_Date)
The code below references cell E4 but always clears out the cell and I cant figure out why.
Dim Entered_User_Password As String
Dim Current_User_Password As String
Dim Current_Password_Date As Object
Dim Administrator_Password As String
Dim Date_Difference As Long
Dim New_User_Password As String
Range("E4").Select
Selection.Copy
Selection.PasteSpecial Paste:=xlPasteAll, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=False
Set Current_Password_Date = ThisWorkbook.Sheets("Sheet2").Range("E4")
Current_Password_Date.NumberFormat = "mm/dd/yy hh:mm"
Current_User_Password = ThisWorkbook.Sheets("PasswordSheet").Range("A65536").End(xlUp)
Current_Password_Date = ThisWorkbook.Sheets("PasswordSheet").Range("A65536").End(xlUp).Offset(0, 1)
Administrator_Password = "pswd"
Date_Difference = DateDiff("h", Now(), Current_Password_Date)