Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi! I have long lists of dates that I often have to clean by deleting all
dates that are weekend dates. I am trying to write a sub that does this for me (i know how to do it in a worksheet but it takes too long time since i have very many books..). I tried selction the dates that I want to clean and then running the macro but that obviously does not work. Is it posiible to do this in any way? any help appreciated! Sub deleteWeekEnds() Dim i As Integer i = Weekday(Selection, vbMonday) If i = 6 Or i = 7 Then Selection.Row.Delete End If End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Weekdays | Excel Discussion (Misc queries) | |||
Weekdays | Excel Programming | |||
Weekdays only! | Excel Discussion (Misc queries) | |||
just weekdays | Excel Programming | |||
Weekdays | Excel Discussion (Misc queries) |