HOLY COW!!! I got it to work. Admittedly, I did use an inelegant approach, but at this point I must move on to actually attending to my other work responsibilities. I'll embed some of the code, below. I won't mark this as solved quite yet so as to get the opinions of some of you experts. After 1 or 2 comments, then I'll mark this as solved.
Here are some of the problems that I ran into along the way:- Wanted to have a sort routine that could be called from different worksheets
- Wanted to dynamically determine the first row of the area to be sorted
- Wanted to dynamically determine the last row of the area to be sorted
- Wanted to let the caller of the sort routine designate which column to sort on and in which direction to sort (ascending or descending)
Each of these "wants" gave me problems, but with the assistance of a couple of you experts, I was able to find a solution. It's not the most elegant of solutions, but for my needs, it works. Here it is. Please respond with constructive comments. I, always, welcome new information.
BTW ... the following routines/macros are assigned to buttons on the worksheets:
SortDashboard_byName
SortDashboard_byE0
SortDashboard_byWorkType
SortAdditionalInfo_byName
SortAdditionalInfo_byWorkType
SortAdditionalInfo_byRequirements
Here is the inelegent code to determine column letter from the column index number. Since I know for sure that the number of columns will definitely not go beyond column Z I chose this method.
Here is an example of calling the 'SortProjects' routine:
Thanks, again.
Regards,
Sue
Bookmarks