Hi
I was wondering if someone can help me with some macro wizardry for a Dashboard project. I’ve used the search function but could not find a full answer to my problem.
I have cost data divided into two groups (direct/indirect expenses). In each of the cost groups there are two separate columns showing the percentage delta between 1) the previous year and the current run-rate and 2) the percentage change month-on-month.
The goal is to enable the end user to sort both of these columns in descending order via a macro assigned to shapes. A third shape should undo the sorting and change the data back to original order.
I am a beginner with macros and therefore have no idea how to accomplish this. Here is my attempt which is only one part of what I am trying to achieve.
Sub sb_VBA_Sort_Data_Descending()
With Worksheets("Data")
Range("B4:H7").Sort _
Key1:=Range("H3"), Order1:=xlDescending
End With
End Sub
I would appreciate any help I could get.
Thank you!
Bookmarks