I have a workbook (C:\DOORS.xlsm) with the following data:
A B C D
100 Type A Description1 Remarks1
102 Type A Description1 Remarks1
103 Type C Description2 Remarks2
104 Type D Description3 Remarks3
I'm still learning VBA and would like to know what i should research to be able to sort the above data to look like this.
A B C D
100, 102 Type A Description1 Remarks1
103 Type C Description2 Remarks2
104 Type D Description3 Remarks3
I think I would use a loop to go thru each cell and verify if it matches another entry, still trying to wrap my head around the concepts of loops,but I was told to avoid them if possible. Then i believe you would use something like a sort function inside the loop? Let me know if i can improve my question or clarify anything. I'm trying to ask good questions and would love some constructive criticism =).
original title: Trying to learn VBA and need help pointing me in the right direction
Nothing to it.
¹ Since you are working within the Range.CurrentRegion property, the .Rows.Count is the total number of rows in the .CurrentRegion.