View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
[email protected] phong.lee@gmail.com is offline
external usenet poster
 
Posts: 16
Default Date Issue in excel vba

Hello all,

i'm having an issue with a date variable in excel vba that i can't
figure out. I hope someone can tell me what's wrong and how come it's
happening.

On one of my spread sheet i have 2 dates. A start date and a end
date. I did some code by creating a module in vb.

DIM Dt1 as date
DIM Dt2 as date

The problem is that when i look at what the value of dt1 and dt2 in
worksheet1, it only shows 12:00am. is there some way that i need to
specified to show the exact date on my sheet?