Drewgarry007
Board Regular
- Joined
- Oct 1, 2011
- Messages
- 142
Hi,
I am trying to use the below loop to populate a date value, but it hasnt worked properly today becuse is a holiday on friday
Range("A2").Select
Do Until ActiveCell.Offset(0, 1) = ""
If ActiveCell.Value = "" Then
ActiveCell.Offset(0, 3) = "=WORKDAY(TODAY(),1)"
End If
ActiveCell.Offset(1, 0).Select
Loop
Is there a way where I can account for holidays such as the one tomorrow? the above returns a value of 11Nov11 when it should return 14Nov11 ??
Is there some way using Networkdays maybe??
Thanks
I am trying to use the below loop to populate a date value, but it hasnt worked properly today becuse is a holiday on friday
Range("A2").Select
Do Until ActiveCell.Offset(0, 1) = ""
If ActiveCell.Value = "" Then
ActiveCell.Offset(0, 3) = "=WORKDAY(TODAY(),1)"
End If
ActiveCell.Offset(1, 0).Select
Loop
Is there a way where I can account for holidays such as the one tomorrow? the above returns a value of 11Nov11 when it should return 14Nov11 ??
Is there some way using Networkdays maybe??
Thanks