Populate a Word Fax Form from an Excel Company List and Export to PDF
Question details
Create a reusable fax form that selects company information from Excel and exports the completed form as a PDF.

- Product
- Microsoft Excel and Microsoft Word
- Device & OS
- not provided
- Scenario
- A recurring fax form needs a company selector that picks up newly added companies from a source spreadsheet.
- Observed behavior
- The desired form should list current companies, fill their associated details after selection, and generate a PDF.
Organize the company list with a header for each field the fax form needs, such as company name and fax number. The VBA approach requires desktop versions of Word and Excel that support macros, and permission to run trusted macros.
Use an Excel table and a Word VBA UserForm to create the PDF
Use this approach when you need a reusable company selector that refreshes from the Excel source.
An Excel table expands as records are added. A Word UserForm can read the table each time it opens, populate the document's content controls, and export the completed document to PDF. This approach requires VBA development; the controls do not connect to Excel automatically.
In Excel, select the company data and choose Insert > Table. Confirm that the table has headers, then use Table Design to give it a recognizable name such as CompanyTable. Save the workbook and note its location.
In Word, create the fax form and add content controls from the Developer tab for the company name, fax number, and other fields. Open Properties for each control and assign a unique tag that your VBA code can identify.
Press Alt+F11 in Word to open the VBA editor, then choose Insert > UserForm. Add a combo box and a button. Write the UserForm initialization code to open the Excel workbook, read the current rows of CompanyTable, and add company names to the combo box.
In the UserForm's selection or button event, write VBA code to retrieve the selected company's row and place its values in the Word content controls using their tags. Add a button action that calls the document's ExportAsFixedFormat method with PDF as the export format and a chosen output path.
Choose File > Save As and save the Word file as a macro-enabled document or template. Open the UserForm, select a company, and check the filled fields and PDF. Add a company to the Excel table, save the workbook, and reopen the form to verify that the new entry appears.

Prepare fax documents and PDFs with WPS Office
WPS Office is a free, lightweight alternative with a familiar interface for working with company spreadsheets and fax documents. Open compatible Office files, update the form manually, and export it to PDF. The Word VBA UserForm workflow described above is not automatically recreated in WPS Office.

Frequently Asked Questions
How do new companies appear in the drop-down list?
Add each company as a new row in the Excel table and save the workbook. The Word UserForm must be programmed to reread the table when it opens; reopen the form to refresh the list.
Can Word fill the fax number when I select a company?
Yes. Add a content control for the fax number in Word, give it a unique tag through Developer > Properties, and write VBA to copy the fax number from the selected Excel table row into that control.
How does the completed form become a PDF?
A VBA button action can call Word's ExportAsFixedFormat method with PDF as the export format and a specified output path. You can also export manually using File > Save As or Export and selecting PDF.
What file type should I use for the Word form?
Use File > Save As and choose a macro-enabled Word document or template so the VBA code is retained. A standard DOCX file cannot store the macros needed for this workflow.




