Dears,
I'm a super noob with excel vba macro, I was able to write some codes time to time by adapting already existing ones from the net or via macro recording.
This time I was not able to find a solution wandering through the net, I'll try to explain what I would like to achieve.
I have an excel sheet, clearly bigger, but more or less like the following (it is not a table neither a pivot table, it is just a worsheet filled with data):
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]date[/TD]
[TD]driver[/TD]
[TD]customer[/TD]
[TD]address[/TD]
[TD]qty[/TD]
[/TR]
[TR]
[TD]august 21st[/TD]
[TD]JOHN[/TD]
[TD]15632[/TD]
[TD]street red 23[/TD]
[TD]150[/TD]
[/TR]
[TR]
[TD]august 21st[/TD]
[TD]JOHN[/TD]
[TD]85963[/TD]
[TD]square blue 1[/TD]
[TD]560[/TD]
[/TR]
[TR]
[TD]august 21st[/TD]
[TD]JOHN[/TD]
[TD]68932[/TD]
[TD]street green 16[/TD]
[TD]50[/TD]
[/TR]
[TR]
[TD]august 21st[/TD]
[TD]THOMAS[/TD]
[TD]11250[/TD]
[TD]street purple 15[/TD]
[TD]32[/TD]
[/TR]
[TR]
[TD]august 21st[/TD]
[TD]THOMAS[/TD]
[TD]86532[/TD]
[TD]square yellow 890[/TD]
[TD]652[/TD]
[/TR]
[TR]
[TD]august 22nd[/TD]
[TD]ROBERT[/TD]
[TD]74569[/TD]
[TD]street black 12[/TD]
[TD]263[/TD]
[/TR]
[TR]
[TD]august 22nd[/TD]
[TD]ROBERT[/TD]
[TD]30002[/TD]
[TD]square grey 15[/TD]
[TD]170[/TD]
[/TR]
</tbody>[/TABLE]
On the column headers I have an autofilter, I would like to automatically filter each driver name one by one and perform a print action. It means I want to filter JOHN and print, then filter THOMAS and print and so forth, everything automatically just by pressing a button.
I was not able to figure out how to automatically filter for all the available criteria in driver's column (the other columns filter will be manually applied by the final user).
The total number of driver is around 80 (by the way they can partially change every month), everyday I will have around 30 drivers but they can be different from the previous day.
Hope I explained myself decently.
Thank you so much
Maurizio
I'm a super noob with excel vba macro, I was able to write some codes time to time by adapting already existing ones from the net or via macro recording.
This time I was not able to find a solution wandering through the net, I'll try to explain what I would like to achieve.
I have an excel sheet, clearly bigger, but more or less like the following (it is not a table neither a pivot table, it is just a worsheet filled with data):
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]date[/TD]
[TD]driver[/TD]
[TD]customer[/TD]
[TD]address[/TD]
[TD]qty[/TD]
[/TR]
[TR]
[TD]august 21st[/TD]
[TD]JOHN[/TD]
[TD]15632[/TD]
[TD]street red 23[/TD]
[TD]150[/TD]
[/TR]
[TR]
[TD]august 21st[/TD]
[TD]JOHN[/TD]
[TD]85963[/TD]
[TD]square blue 1[/TD]
[TD]560[/TD]
[/TR]
[TR]
[TD]august 21st[/TD]
[TD]JOHN[/TD]
[TD]68932[/TD]
[TD]street green 16[/TD]
[TD]50[/TD]
[/TR]
[TR]
[TD]august 21st[/TD]
[TD]THOMAS[/TD]
[TD]11250[/TD]
[TD]street purple 15[/TD]
[TD]32[/TD]
[/TR]
[TR]
[TD]august 21st[/TD]
[TD]THOMAS[/TD]
[TD]86532[/TD]
[TD]square yellow 890[/TD]
[TD]652[/TD]
[/TR]
[TR]
[TD]august 22nd[/TD]
[TD]ROBERT[/TD]
[TD]74569[/TD]
[TD]street black 12[/TD]
[TD]263[/TD]
[/TR]
[TR]
[TD]august 22nd[/TD]
[TD]ROBERT[/TD]
[TD]30002[/TD]
[TD]square grey 15[/TD]
[TD]170[/TD]
[/TR]
</tbody>[/TABLE]
On the column headers I have an autofilter, I would like to automatically filter each driver name one by one and perform a print action. It means I want to filter JOHN and print, then filter THOMAS and print and so forth, everything automatically just by pressing a button.
I was not able to figure out how to automatically filter for all the available criteria in driver's column (the other columns filter will be manually applied by the final user).
The total number of driver is around 80 (by the way they can partially change every month), everyday I will have around 30 drivers but they can be different from the previous day.
Hope I explained myself decently.
Thank you so much
Maurizio