G
Guest
Good day everyone,
With the following code, Excel only prints the rows where the date is in
2005. I wish to print everything prior to todays's date, including 2004....
Here's the code:
Dim herrange As Range
Dim Mydate As Date
Mydate = Date
With Worksheets("Database")
.Range("E2").Select
Set herrange = .Range("PasseDue")
For Each cell In herrange
If cell.Value < Mydate And ActiveCell.Offset(,
104).Value > 0 Then
Call ImprimerAllPastDue
End If
ActiveCell.Offset(1, 0).Select
Next
Do you have any clue of what could be wrong?
Thanks for your time
Denys
With the following code, Excel only prints the rows where the date is in
2005. I wish to print everything prior to todays's date, including 2004....
Here's the code:
Dim herrange As Range
Dim Mydate As Date
Mydate = Date
With Worksheets("Database")
.Range("E2").Select
Set herrange = .Range("PasseDue")
For Each cell In herrange
If cell.Value < Mydate And ActiveCell.Offset(,
104).Value > 0 Then
Call ImprimerAllPastDue
End If
ActiveCell.Offset(1, 0).Select
Next
Do you have any clue of what could be wrong?
Thanks for your time
Denys