M
Mike
Hi everyone,
Say I have an excel spreadsheet model. The whole model is in a single record (from col A to col z for example). Some record cells have random number rand(). So I can run the model in 10, 100, 1000,… rows at the same time, every time I hit F9. Column “y” has an integer value (0,1,2,3,..), whilecolumn “z” is 0/1 always.
I want to write a macro that would:
1)Look at column “z”, if z=1, copy the whole record to a pre-defined area named “results”, say from col “aa” to col “az”.
2)The area named “results”, I want to sort it by column “ay” from smaller to larger.
Any neat smart piece of vba code that would do so would be greatly appreciated?
Thanks,
Mike
Say I have an excel spreadsheet model. The whole model is in a single record (from col A to col z for example). Some record cells have random number rand(). So I can run the model in 10, 100, 1000,… rows at the same time, every time I hit F9. Column “y” has an integer value (0,1,2,3,..), whilecolumn “z” is 0/1 always.
I want to write a macro that would:
1)Look at column “z”, if z=1, copy the whole record to a pre-defined area named “results”, say from col “aa” to col “az”.
2)The area named “results”, I want to sort it by column “ay” from smaller to larger.
Any neat smart piece of vba code that would do so would be greatly appreciated?
Thanks,
Mike