Sorting range in ascending numerical order containing strings by vba excel

后端 未结 3 1271
不知归路
不知归路 2021-01-25 11:22

i have a range containing the following strings:

step_1, step_10, step_3, step_2

using the following code

input_sh.Activate
With ActiveSheet
             


        
3条回答
  •  借酒劲吻你
    2021-01-25 12:03

    I would separate the number into another column, your last + 1, using mid function and sort on that.


    Edit: I'm not at my pc but I think your only way to do this is to setup a macro that:

    1. Filter your sheet by the first 9.
    2. Cut and insert them before row 2.
    3. Sort these on their own.
    4. Then remove the filter and sort the rest as you have above.

提交回复
热议问题