VBA in Excel 2010 for Pivot Tables with comma delimited items in column

L

Legacy 366536

Guest
I have written a VBA code for a Userform that allows current employees to track treatment interactions with patients. The code is working with no problems, but the issue I am running in to is I would like to have the charts generate on their own. I manually can run all the data using a pivot table, but I am not sure if there is a better way to write a macro to count the values in the column to graph them. The values of each column are:

Department
Body Part
Injury
Mechanism
Interaction (2 categories)
Interaction Type (comma delimited - may have up to 5 choices)

There are four different charts that are formed:

1. Number of Injuries per body part in each Department
2. Count of Mechanisms per injury in each department
3. Number of Interaction types in Interaction Category 1
4. Number of Interaction types in Interaction Category 2

Is there a way to use the macro to count everything or will I need to continue to do everything by hand? Thank you in advance for your time and consideration.
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.

Forum statistics

Threads
1,215,461
Messages
6,124,956
Members
449,200
Latest member
indiansth

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