Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
How do i get the integer value for the current day. I know i need to use the sysdate and then perform some action on that to tell me the integer representation of the day. eg SUNDAY = 0 MONDAY = 1 etc. Please any help is much appriciated |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
You can use the Weekday function in VBA code
Sub test() MsgBox Application.WorksheetFunction.Weekday(Now, 1) End Sub -- Regards Ron de Bruin (Win XP Pro SP-1 XL2002 SP-2) www.rondebruin.nl "Andrew Haycock" wrote in message om... Hi, How do i get the integer value for the current day. I know i need to use the sysdate and then perform some action on that to tell me the integer representation of the day. eg SUNDAY = 0 MONDAY = 1 etc. Please any help is much appriciated |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Use the worksheet function Weekday().
HTH, Merjet |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How do I add an integer to an existing integer? | Excel Worksheet Functions | |||
Figuring Vacation Hrs. Earned using Current Date minus Hire Date | Excel Worksheet Functions | |||
Make date change in excel to current date when opening daily? | Excel Discussion (Misc queries) | |||
Can I automatically enter the current date or current time into a | New Users to Excel | |||
Calculating days between current date and a date in future NETWORKDAYS() function | Excel Worksheet Functions |