Click here to Skip to main content
15,922,325 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralCapture the key hit Pin
An16-Jun-01 8:21
An16-Jun-01 8:21 
GeneralRe: Capture the key hit Pin
17-Jun-01 22:19
suss17-Jun-01 22:19 
GeneralRe: Capture the key hit Pin
19-Jun-01 15:07
suss19-Jun-01 15:07 
GeneralRe: Capture the key hit Pin
7-Jul-01 20:41
suss7-Jul-01 20:41 
GeneralOutlook VB script: Print Method Pin
15-Jun-01 5:21
suss15-Jun-01 5:21 
GeneralActiveX control for the web Pin
15-Jun-01 4:45
suss15-Jun-01 4:45 
GeneralDates and period in between (Excel VBA) Pin
Ian14-Jun-01 23:17
Ian14-Jun-01 23:17 
GeneralRe: Dates and period in between (Excel VBA) Pin
Ian15-Jun-01 5:07
Ian15-Jun-01 5:07 
This seems to work (below) but does anyone know how to return the day of the week. I need to return the date of the next Monday after the current date when the code is ran.

fred = DateDiff("w", duedate, todate)
ActiveSheet.Cells(27, 5).Value = fred + 1

eric = DateDiff("m", duedate, todate)
ActiveSheet.Cells(27, 9).Value = eric + 1

the plus 1 is required as it always returns one week or month less.


Don't suppose anyone knows how to return the day of the week?
I need to make it find the date of the Monday following today's date (today being whatever the date is when the code is ran???



GeneralRe: Dates and period in between (Excel VBA) Pin
AndyG15-Jun-01 11:05
AndyG15-Jun-01 11:05 
GeneralRe: Dates and period in between (Excel VBA) Pin
Ian15-Jun-01 21:29
Ian15-Jun-01 21:29 
GeneralRe: Dates and period in between (Excel VBA) Pin
Ian17-Jun-01 22:34
Ian17-Jun-01 22:34 
Generalplease help Pin
Rodney14-Jun-01 20:39
Rodney14-Jun-01 20:39 
Generalinput validation Pin
Ian11-Jun-01 2:37
Ian11-Jun-01 2:37 
GeneralRe: input validation Pin
Michael P Butler11-Jun-01 3:09
Michael P Butler11-Jun-01 3:09 
GeneralRe: input validation Pin
Ian11-Jun-01 4:16
Ian11-Jun-01 4:16 
GeneralRe: input validation Pin
Michael P Butler11-Jun-01 5:00
Michael P Butler11-Jun-01 5:00 
GeneralRe: input validation Pin
Ian11-Jun-01 5:36
Ian11-Jun-01 5:36 
GeneralRe: input validation Pin
Ian11-Jun-01 5:59
Ian11-Jun-01 5:59 
GeneralRe: input validation Pin
Michael P Butler11-Jun-01 8:48
Michael P Butler11-Jun-01 8:48 
GeneralRe: input validation Pin
Ian11-Jun-01 20:31
Ian11-Jun-01 20:31 
GeneralMicrosoft Outlook 2000 Pin
Mahesh Sundararaman10-Jun-01 23:49
Mahesh Sundararaman10-Jun-01 23:49 
Generalexcel vba Pin
Ian10-Jun-01 8:36
Ian10-Jun-01 8:36 
GeneralRe: excel vba Pin
Giles10-Jun-01 8:51
Giles10-Jun-01 8:51 
GeneralRe: excel vba Pin
Ian10-Jun-01 20:13
Ian10-Jun-01 20:13 
GeneralRe: excel vba Pin
Giles12-Jun-01 9:10
Giles12-Jun-01 9:10 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.