Question : Day of the Week Popup

I would like to have a macro/sub routine, which pops up the day of the week, based on a date parameter.
   
The date information would be as follows:

 Dim Year1, Month1, Day1, FindDate As String
 FindDate = "'" & Month1 & "/" & Day1 & "/" & Year1 & "'" (can be configured in any format)

Thanks,
Ron

Answer : Day of the Week Popup

Hello bikeski.

what is the content of your variables? Numbers as strings? Month names? How do they get filled? To find the weekday for a date, you can use

wkDay = Application.WorksheetFunction.Text(Date, "dddd")

In this example, Date is the current date, so you'd need to replace it with a date in valid date format.

In any case, you definitely don't need seven levels of If - Elseif.

cheers, teylyn
Random Solutions  
 
programming4us programming4us