View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Stefi Stefi is offline
external usenet poster
 
Posts: 2,646
Default Day of the Week from Date

yourvariable =Worksheetfunction.TEXT(A1;"dddd")

where A1 contains the date value.

Regards,
Stefi

€˛Greg Billinge€¯ ezt Ć*rta:

Hi,

I need to work out what day of the week it is from a date value. I know you
can show it in formatting but i need to set the value of a variable in my
macro to Monday, Tuesday etc.

Any help is really appreciated.

Thanks

Greg