gtd526
Well-known Member
- Joined
- Jul 30, 2013
- Messages
- 690
- Office Version
- 2019
- Platform
- Windows
Hello,
I'm using the following code but it can't find the date because its created by a formula (EOMONTH). If the date is entered manually, its selected.
How can we make it find a date created by a formula?
Thank you
I'm using the following code but it can't find the date because its created by a formula (EOMONTH). If the date is entered manually, its selected.
How can we make it find a date created by a formula?
VBA Code:
Set foundRng = Range("A:A").Find(DateSerial(Year(Date), Month(Date) + 1, 0)) 'last day of current month
'find expenses
If Not (foundRng Is Nothing) Then
foundRng.Select
ActiveCell.Offset(0, 21).Select
Selection.Copy
ActiveCell.PasteSpecial xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Else
End If
Thank you