WarrenX148
New Member
- Joined
- Dec 14, 2021
- Messages
- 3
- Office Version
- 365
- Platform
- Windows
Good day everyone,
I have a fairly complex worksheet going currently that I have been able to maintain without VBA, but it seems that what I am looking to do at this point requires it.
On the "master sheet" I have a list of employees, their SSN (which is what I use for most queries) and several other pieces of data that we have on those employees.
Each month, I receive a report from another office that I import into a new tab in the sheet. It contains the employee names, SSNs, and the number of hours they have worked for the employer. It does not contain the other data that is exclusive to us.
I have the master sheet set up to VLOOKUP based on the employee SSN and provide me their hours worked. There are some other functions that also happen that are less relevant. However, if I don't have the employee and their SSN on the master sheet, I don't get anything, so it is easy to miss someone who is not being tracked.
I want to add a person's name and SSN to the master sheet if they do not yet exist on it so I am sure I am capturing everyone's data. Since there are so many tabs (many years worth), I'd also need to be able to tell it which tab I want to look at to do this.
I've found snippets of code that will add rows of missing data within the same worksheet, snippets that allow dialog boxes for inputs, and the like, but I am not very VBA savvy and am unable to put it all together into a functional macro that will accomplish the whole goal.
Any help is greatly appreciated!
I have a fairly complex worksheet going currently that I have been able to maintain without VBA, but it seems that what I am looking to do at this point requires it.
On the "master sheet" I have a list of employees, their SSN (which is what I use for most queries) and several other pieces of data that we have on those employees.
Each month, I receive a report from another office that I import into a new tab in the sheet. It contains the employee names, SSNs, and the number of hours they have worked for the employer. It does not contain the other data that is exclusive to us.
I have the master sheet set up to VLOOKUP based on the employee SSN and provide me their hours worked. There are some other functions that also happen that are less relevant. However, if I don't have the employee and their SSN on the master sheet, I don't get anything, so it is easy to miss someone who is not being tracked.
I want to add a person's name and SSN to the master sheet if they do not yet exist on it so I am sure I am capturing everyone's data. Since there are so many tabs (many years worth), I'd also need to be able to tell it which tab I want to look at to do this.
I've found snippets of code that will add rows of missing data within the same worksheet, snippets that allow dialog boxes for inputs, and the like, but I am not very VBA savvy and am unable to put it all together into a functional macro that will accomplish the whole goal.
Any help is greatly appreciated!