Print to PDF in VBA

visheshkotha

New Member
Joined
Apr 19, 2024
Messages
1
Office Version
  1. 365
Platform
  1. Windows

I have an excel that calculates business position for 481 branch locations. There are certain number of branches under each Regional Office (RO/RO Name). User can select the branch by entering the DP Code of the branch or by selecting from drop down list. Data is being fetched from 24 different sheets in the main profile sheet. Branch Manager Name, RO Name is being fetched from HRM Sheet. I need help with creating macro so that the profile sheet can be printed in pdf format in a specific location. The pdf should be saved in the format "DP Code - Branch Name" for each branch or the profile of the entire 481 branches can be exported in a single file with sequence as per RO Name. Also it would be extremely helpful if the pdf export can be done by selecting the RO Name into a single file or creating different macros for each RO so that profiles of all branches under the RO can be saved in a single file.
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.

Forum statistics

Threads
1,223,883
Messages
6,175,168
Members
452,615
Latest member
bogeys2birdies

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top