Rebeccah83
New Member
- Joined
- Jun 30, 2016
- Messages
- 7
I am building a VBA to generate a report but have never built a VBA before.
User enters:
Date From (B3)
Date to (D3)
Employee (F3) *Enters "All Employees" if wishing to include all employee data
They hit the "Submit" VBA button and...the data populates beginning in A12 of the active sheet.
Data is pulled from worksheet labeled "LV Daily Employee Data".
Dates are held in column B (which I have named "Date")
Employees are in column C (named "Employee")
The full range of the data needing to be reviewed/copied is named "DailyData".
I figure the old data will need to be cleared every time. So, here is what I have so far:
Private sub Submit_Click()
ActiveSheet.Range("A12","AU1000").ClearContents
EndSub
Assistance on the rest would be much appreciated.
User enters:
Date From (B3)
Date to (D3)
Employee (F3) *Enters "All Employees" if wishing to include all employee data
They hit the "Submit" VBA button and...the data populates beginning in A12 of the active sheet.
Data is pulled from worksheet labeled "LV Daily Employee Data".
Dates are held in column B (which I have named "Date")
Employees are in column C (named "Employee")
The full range of the data needing to be reviewed/copied is named "DailyData".
I figure the old data will need to be cleared every time. So, here is what I have so far:
Private sub Submit_Click()
ActiveSheet.Range("A12","AU1000").ClearContents
EndSub
Assistance on the rest would be much appreciated.