Home |
Search |
Today's Posts |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Dim TheDate As Date ' Declare variables.
Dim Msg TheDate = InputBox("Enter a date:") Msg = "Week: " & DatePart("ww", TheDate) MsgBox MsgBut there are varying definitions of the week number. You might want to look at Chip Pearson's sitehttp://www.cpearson.com/excel/weeknum.htm-- Regards,Tom Ogilvy "Pokey*" wrote in message ... Is there a way to format the worksheet so if I type 10 numbers in A1, that it automatically tabs over to C1? And then repeat the process on the next row within a certain range? Also, can you find the Week of a certain date with simple code? I have a complex formula that works, but isn't there a way similar to Month(Date)? Thanks again! |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Finding the week of date | Excel Discussion (Misc queries) | |||
Finding the next dayof the week after a certain date. | Excel Worksheet Functions | |||
Finding Friday in week number | New Users to Excel | |||
Finding day of week in 2030 | Excel Worksheet Functions | |||
Finding week from date | Excel Programming |