View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.misc
Fred Smith[_4_] Fred Smith[_4_] is offline
external usenet poster
 
Posts: 2,389
Default prob with TODAY() within a macro

In VBA, use "Date" rather than "Today()"

Regards
Fred

"deepika :excel help" wrote in
message ...
y this today() function is giving me an error when it is run within teh
macro?
what should i include



Sub FTPmacro()

Cells(1, 10).value = TODAY() - Weekday(TODAY() + 1, 1) + 7

end sub