#1   Report Post  
Posted to microsoft.public.excel.misc
DEE DEE is offline
external usenet poster
 
Posts: 250
Default engaging with dates

How do i say that :
if my dates in a column I beginning at row 6 in a sheet called WAS is less
than the dates (span as 5 columns , date begining from mon of a week to
friday of taht week) in the next sheet , then there should not be any entry
in the second sheet and msgbox shud say "ck planned end date)

the foll piece of code works:


Dim StartDate As Date
Dim EndDate As Date
Dim da As Date
Dim o As Integer

StartDate = Date - Weekday(Date, 2) + 1
EndDate = StartDate + 4
o = 6
For da = StartDate To EndDate
Cells(2, o).value = da
Cells(2, o).NumberFormat = "ddd"
o = o + 1
Next da


I havethe following code in place which doesnt work for ehich i require help



If Sheets("WAS").Cells(j, 8).value <= da Then
MsgBox ("Check planned end date")
end if
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
how do I sort a column of random dates into Consecutive dates Rob Gibson Excel Worksheet Functions 2 June 12th 07 05:10 AM
Identifying unique dates within a range of cells containing dates cdavidson Excel Discussion (Misc queries) 0 October 12th 06 08:19 PM
need to convert list of dates to count no. of dates by week neowok Excel Worksheet Functions 13 January 30th 06 03:54 PM
Calculating number of days between two dates that fall between two other dates [email protected] Excel Discussion (Misc queries) 5 October 26th 05 06:18 PM
Charting data against dates where dates are not at fixed intervals PK Charts and Charting in Excel 4 June 16th 05 05:08 AM


All times are GMT +1. The time now is 10:44 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"