I am looking a way to store information and then to call back this information later on in another part of the code using a VBA code. I’m just not sure how this data should be stored. Here is an example. I have two categories: Category 1 has 3 rows of data and category 2 has 5, as follows:
ABC Category
Row 1
Row 2
Row 3
XYZ Category
Row 1
Row 2
Row 3
Row 4
Row 5
I want to store this data such that for each category, I can call a procedure that will perform an action for each row in this category. For example, for category 1, I will perform 3 call actions, followed by category 2 where I will perform 5 call actions.
Any ideas?