tommyleinen
Board Regular
- Joined
- Aug 22, 2009
- Messages
- 74
Hello, I wonder if anyone can advise on if the following is possible? I have a sheet with various weeks' data, and there is a small macro to sort by week for each week in the sheet. So there are macros: sort1, sort2, sort3, sort4 etc.
What I would like to do is call the relative macro within another macro based on a cell value. EG A1 =1, then call sort1; If A1 = 2, then the part in the VBA would call sort2. etc. I don't want the macro called when the cell is changed, just to be able to write the code which I think might be along the lines of:
Is something like this possible?
Thanks in advance !
What I would like to do is call the relative macro within another macro based on a cell value. EG A1 =1, then call sort1; If A1 = 2, then the part in the VBA would call sort2. etc. I don't want the macro called when the cell is changed, just to be able to write the code which I think might be along the lines of:
Code:
call sort & Sheets("Sheet1").Range("A1").Value
Is something like this possible?
Thanks in advance !