I am looking VBA code to create macro to make PDF files by searching word in that current page. i have word documents with 40 pages (invoices of different companies on each page). I want to search first company name and then to make pdf file of that current page. the reason i do not want to add From and To as sometimes any company has no invoice then i get word file with different numbers of invoices. I even try to remove From: and To from the code but it is only making PDF of first page. Thank you.