Macro Help.xlsm
In Excel 2010, I have a database on Sheet 1 with rows of people's personal information and a printable/formatted "document" on Sheet 2. I have a macro that indexes through each row of the database and prints the document hard-copy. What I need now instead of printing hard-copy, is to generate a single document for each index number (i.e. row of data) and have that save as a pdf with the name of the document based on one of the data cells, either from the database or the document itself. For instance, if index number one is Joe Smith in the database, when the maro runs, the formatted documents pulls all of Joe's personal information, saves it as a pdf with JoeSmith.pdf as the name (or his birthdate.pdf as the name).
Below is my code for the index looping and printing through the first 15 entries in the database.
![]()
Please Login or Register to view this content.
Bookmarks