silentwolf
Well-known Member
- Joined
- May 14, 2008
- Messages
- 1,216
- Office Version
- 2016
Hi guys,
I came accross this code from Norie and it works fine!
However I like to format the dates in Wednesday 20 Feb 2019 and would love to have sundays automatically in red.
I tried with format function but had no luck so far.
Help would be much appreciated!
Many Thanks
Albert
I came accross this code from Norie and it works fine!
However I like to format the dates in Wednesday 20 Feb 2019 and would love to have sundays automatically in red.
Code:
Sub FillDates()
Dim StartDate As Date
Dim EndDate As Date
Dim NoDays As Integer
With tabAuflistung
StartDate = Range("B2").Value
EndDate = Range("B3").Value
NoDays = EndDate - StartDate + 1
Range("A7").Value = StartDate
Range("A7").Resize(NoDays).DataSeries Rowcol:=xlColumns, Type:=xlChronological, Date:= _
xlDay, Step:=1, Stop:=EndDate, Trend:=False
End With
End Sub
I tried with format function but had no luck so far.
Help would be much appreciated!
Many Thanks
Albert
Last edited: