spacecaptainsuperguy
Board Regular
- Joined
- Dec 30, 2004
- Messages
- 202
- Office Version
- 365
- Platform
- Windows
I am trying to automate a report that is calculating a payroll expense and whether or not it is over budget or under budget.
The way I envision this working is 2 input boxes collecting information about the particular day or week's payroll budget to then put in cell H40 (in this example...H40 is variable). In this example the formula in H40 is =190.29 x 6 which is the daily payroll number (input #1) times the number of days in the pay period (input #2). Where this formula will end up is variable based on how many people worked and the number of days gone by etc. What I assume would be the easiest way would be to have the code look in column B for 'Totals Department: FB' and then generate that formula (input#1 x input#2) six cells to the right in column H. I am not yet familiar enough with VBA to figure out how to go about setting something like that up. Any help you can offer is greatly appreciated.
SpaceCaptainSuperGuy
The way I envision this working is 2 input boxes collecting information about the particular day or week's payroll budget to then put in cell H40 (in this example...H40 is variable). In this example the formula in H40 is =190.29 x 6 which is the daily payroll number (input #1) times the number of days in the pay period (input #2). Where this formula will end up is variable based on how many people worked and the number of days gone by etc. What I assume would be the easiest way would be to have the code look in column B for 'Totals Department: FB' and then generate that formula (input#1 x input#2) six cells to the right in column H. I am not yet familiar enough with VBA to figure out how to go about setting something like that up. Any help you can offer is greatly appreciated.
SpaceCaptainSuperGuy