I have created a series of forms that input job tracking data into two different worksheets - Hours into one and Materials into another.
The main menu is opens the form but it doesnt change the worksheet that it is populated to for some reason?
When I click "Enter Hours" It opens the form for staff hours BUT if the last thing I did previously was enter materials it attempts to populate that sheet.
Even though my code specifies the sheet here
erow = Sheet2.Cells(Rows.Count, 1).End(xlUp).Offset(1, 0).Row
Cells(erow, 1).Value = txtDate
Cells(erow, 2).Value = CboStaff
Cells(erow, 3).Value = Val(txtNormalHrs.Text)
All the worksheets do seem to stay open in the background. When I am finished I dont think I want the person inputting to see that as much unless they have to perhaps look for an error but I can deal with that once I make sure that the data goes into the right sheet!
The main menu is opens the form but it doesnt change the worksheet that it is populated to for some reason?
When I click "Enter Hours" It opens the form for staff hours BUT if the last thing I did previously was enter materials it attempts to populate that sheet.
Even though my code specifies the sheet here
erow = Sheet2.Cells(Rows.Count, 1).End(xlUp).Offset(1, 0).Row
Cells(erow, 1).Value = txtDate
Cells(erow, 2).Value = CboStaff
Cells(erow, 3).Value = Val(txtNormalHrs.Text)
All the worksheets do seem to stay open in the background. When I am finished I dont think I want the person inputting to see that as much unless they have to perhaps look for an error but I can deal with that once I make sure that the data goes into the right sheet!