The issue I am looking to solve: I want to look at one column which is automatically populated with a due date. My organization wants to enforce an In-House due date of two business days (M-Th) prior. To automatically populate the In-House due date with the 2 days prior according to day in the week the actual due date falls on, I have written this Sub:
Sub In_House()
Dim In_HouseDue
Dim CurrentCell
CurrentCell = Range("D3").Value
Select Case CurrentCell
Case Weekday(CurrentCell) = 1
In_HouseDue.Value = DateAdd("d", 5, CurrentCell)
ActiveCell.Offset(1, 0).Select
Case Weekday(CurrentCell) = 2
In_HouseDue.Value = DateAdd("d", 5, CurrentCell)
ActiveCell.Offset(1, 0).Select
Case Weekday(CurrentCell) = 3
In_HouseDue.Value = DateAdd("d", 2, CurrentCell)
ActiveCell.Offset(1, 0).Select
Case Weekday(CurrentCell) = 4
In_HouseDue.Value = DateAdd("d", 2, CurrentCell)
ActiveCell.Offset(1, 0).Select
Case Weekday(CurrentCell) = 5
In_HouseDue.Value = DateAdd("d", 2, CurrentCell)
ActiveCell.Offset(1, 0).Select
Case Weekday(CurrentCell) = 6
In_HouseDue.Value = DateAdd("d", 3, CurrentCell)
ActiveCell.Offset(1, 0).Select
Case Weekday(CurrentCell) = 7
In_HouseDue.Value = DateAdd("d", 4, CurrentCell)
ActiveCell.Offset(1, 0).Select
In_HouseDue = Range("E3").Value
End Select
End Sub
It runs without any error, but it does not actually populate the In-House due date column that starts with Cell "E3"
Any help would be great!
Set In_HouseDueas a range variable, and Variant types do not have a.Valueproperty.