I have set up a file so that the table updates based on the value in the dropdown menu. The drop down menu consists of numbers stored as text (employee ID numbers starting in 0. Hence saved it as a string so that the zeros are not dropped).
I'm trying to create a code that loops through each value in the drop down menu and generate a pdf for each person, saving the pdf using the person's last name. So far, I've tweaked this code below. The main problem that I noticed is, this code seems to convert the Employee ID numbers into an actual number. (i.e. 000123 becomes 123), leaving me with a "#N/A" where the employee's name should be.
When I run this code, I get the following error: "Run-time error '13." Would appreciate any help troubleshooting this. I'm so close, yet so far.
B12 - references the drop down list
S4 contains the name of the person that updates based on what value is selected in "B12"
![]()
Please Login or Register to view this content.
Bookmarks