Input or Remove Employees

jltjr75

New Member
Joined
Oct 15, 2013
Messages
25
Office Version
  1. 2021
Platform
  1. Windows
I am looking for a way to make a weekly employee hour spreadsheet more user-friendly.

I have an INPUT & REMOVE button at the top that I want to add or remove a name from the spreadsheet to INCLUDE the TOTAL HOURS Tab and ALL the DAY Tabs (Tue, Wed, Fri, Sat, Sun, Mon).

I need these buttons to work with adding and removing rows WITHOUT messing up my formulas or my shaded green areas (areas the person inputting the hours should NOT touch)

Link to view spreadsheet
https://drive.google.com/open?id=0B_xYf3oUty0CVWxWNUdXc1lzV1E

Thank you all for your support,

Jay
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
I am looking for a way to make a weekly employee hour spreadsheet more user-friendly.

I have an INPUT & REMOVE button at the top that I want to add or remove a name from the spreadsheet to INCLUDE the TOTAL HOURS Tab and ALL the DAY Tabs (Tue, Wed, Fri, Sat, Sun, Mon).

I need these buttons to work with adding and removing rows WITHOUT messing up my formulas or my shaded green areas (areas the person inputting the hours should NOT touch)

Link to view spreadsheet
https://drive.google.com/open?id=0B_xYf3oUty0CVWxWNUdXc1lzV1E

Also, I am sorry but I forgot to add I would like it to alphabetize by the last name.

Can someone point me in the right direction to figure this out by myself if it is too hard for the boards here, please?

Thanks again,

Jay
 
Upvote 0
I am not sure if anyone is viewing this thread anymore but the remove code has been created. I only need the Input button to work adding rows while alphabetizing by the last name WITHOUT messing up my formulas or my shaded green areas.

Code to Remove name:
Code:
Option Explicit

Private Sub CommandButton1_Click()
Dim Rng As Range
Dim Sht As Worksheet
Application.Calculation = xlCalculationManual
For Each Sht In ActiveWorkbook.Sheets
    Sht.Activate
    Set Rng = Range("A1").CurrentRegion
    Rng.AutoFilter
    Rng.AutoFilter Field:=1, Criteria1:=Sheets("Total Hours").Range("M2")
    Rng.Offset(1, 0).SpecialCells(xlCellTypeVisible).EntireRow.Delete
    Rng.AutoFilter
    Set Rng = Nothing
Next Sht
Application.Calculation = xlCalculationAutomatic
End Sub

Link to view spreadsheet
https://drive.google.com/open?id=0B_...WxWNUdXc1lzV1E


Thank you all for your support,

Jay
 
Upvote 0

Forum statistics

Threads
1,214,848
Messages
6,121,917
Members
449,055
Latest member
KB13

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top