I change the code to
Code:
--------------------
CellPosition.Value = CDate(frmWorkHistory.txtStartMonth.Value & "/31/" & frmWorkHistory.txtStartYear.Value)
--------------------
and I got "run time error '13' type mismatch
since the CDate function converts a value to a date.
is it possible that "/31/" is causing this error??
--
cedtech23
------------------------------------------------------------------------
cedtech23's Profile:
http://www.excelforum.com/member.php...o&userid=31022
View this thread:
http://www.excelforum.com/showthread...hreadid=507527