Hi,
I am working on a project relating to employee management. I have created a UserForm which enables the user to select the employee for modification, reports, etc.
This userform has a combobox which I want to populate with an two dimensional array that has 4 columns and as many rows as there are employees. The employee data is stored in a worksheet called "PERS". I want the combobox to display the 4 columns as Employee ID (Column C), Surname (Column F), First name (Column G) and Middle Name (Column H). The data starts in row 3. Headers occupy rows 1 and 2.
I am having a problem with loading the combobox with the data. The code that I have currently is given below
I keep getting error "Subscript out of range" on the line
Can some one help point out where I have gone wrong and give the solution to populate the combobox. I have been searching the web for likely solutions but none have worked so far.
Please excuse if there is an elementary error - I am still low on the learning curve
Thanks in advance for your patience
Anand
Bookmarks