View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Gary Keramidas[_2_] Gary Keramidas[_2_] is offline
external usenet poster
 
Posts: 364
Default how to put mydate into activecell as dd/mm/yyyy excel 2007 vb

try activecell=format(mydate,"dd/mm/yyyy")

--

Gary
Excel 2003


"JohnnyP" wrote in message
...
when using input box mydate and i try to put the date into the active cell
it
changes from dd/mm/yyyy to mm/dd/yyyy how can stop this. Code follows

mydate = InputBox("Enter date as dd/mm/yyyy or Cancel to edit", Date,
Date)
activecell=mydate