Sorting range in ascending numerical order containing strings by vba excel

后端 未结 3 1273
不知归路
不知归路 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 11:56

    thanks every one for you contribution. to user I found my solution before reading your suggestion. thanks anyway for your effort

    my solution:

    • split str for "_"
    • write 2nd index next to filenames order 2nd cols by then col with only number
    • clean col with numbers

提交回复
热议问题