VBA required for Print As PDF through Filter in Loop and name the PDF as each filtered item

piyushchandrakar

New Member
Joined
Jul 3, 2019
Messages
1
want to get the Separate PDF by column 1 filter and separate pages in each pdf by column 2

Name the exported PDF as column 1 name

please suggest the code to get the desired result.

i am very new to VBA coding.

i am having data as below

DSO Name
Abhishek Jadhav
CORONA LED BULB 12W CDL B22
Abhishek JadhavLEDZ BULB 9W CDL B22
Abhishek JadhavLEDZ BULB 9W CDL B22
Abhishek JadhavBajaj Platini PX7 500W Mixer grinder.
Abhishek JadhavMicrowave Oven 2005 ETB
ABHISHEK KESHARWANI200W 250V BC CL-NP
ABHISHEK KESHARWANIEDGE 1200 mm Brown CF

<tbody>
[TD="class: xl66, width: 399"]Retailer Name[/TD]
[TD="width: 399"]Item_Name[/TD]
[TD="class: xl65, width: 112"]Purchased Times[/TD]
[TD="class: xl65, width: 77"]Amount[/TD]

[TD="class: xl66"]NARESH DAILY NEEDS[/TD]

[TD="class: xl65"]1[/TD]
[TD="class: xl65"]1607.22[/TD]

[TD="class: xl66"]NARESH DAILY NEEDS[/TD]

[TD="class: xl65"]1[/TD]
[TD="class: xl65"]660.84[/TD]

[TD="class: xl66"]SINHA ELECTRICALS[/TD]

[TD="class: xl65"]1[/TD]
[TD="class: xl65"]321.44[/TD]

[TD="class: xl66"]TIRUPATI AUTO & CYCAL[/TD]

[TD="class: xl65"]1[/TD]
[TD="class: xl65"]1547.66[/TD]

[TD="class: xl66"]TIRUPATI AUTO & CYCAL[/TD]

[TD="class: xl65"]2[/TD]
[TD="class: xl65"]9253.12[/TD]

[TD="class: xl66"]Aarya hardware & electrical pathariya[/TD]

[TD="class: xl65"]1[/TD]
[TD="class: xl65"]323.91[/TD]

[TD="class: xl66"]Aarya hardware & electrical pathariya[/TD]

[TD="class: xl65"]1[/TD]
[TD="class: xl65"]974.63[/TD]

</tbody>
[TABLE="width: 987"]
<tbody>[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]:rofl::rofl:[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"

Forum statistics

Threads
1,224,846
Messages
6,181,305
Members
453,031
Latest member
Chris_1

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