Ark68
Well-known Member
- Joined
- Mar 23, 2004
- Messages
- 4,564
- Office Version
- 365
- 2016
- Platform
- Windows
Rich (BB code):
Sub Initiate()
Dim qdate As Date
Set wb_master = ThisWorkbook
Set ws_destination = wb_master.Worksheets("Destination")
mbevents = False
With ws_destination
.Range("E1") = Format(Date + 1, "ddd mmm-dd-yy")
'booking data
Call process_bkgs
With ws_destination
lrow_bkgrows = ws_bookings.Cells(ws_bookings.Rows.Count, "B").End(xlUp).Row
cnt_bkgrows = lrow_bkgrows - 1
qdate = .Range("E1").Value
cnt_date = Application.WorksheetFunction.CountIf(ws_bookings.Columns(2), qdate)
End With
mbevents = True
End Sub
I am receiving an "Object required." error with the line above in red. I'm unsure why. Thoughts?[/code]
Last edited: