作者:mobiledu2502940947 | 来源:互联网 | 2023-05-19 05:20
IamnewtoVBAandhavingthisproblem.Tablepositionandvalue我是VBA的新手,遇到了这个问题。表位和值A1S+01aA2
I am new to VBA and having this problem. Table position and value
我是VBA的新手,遇到了这个问题。表位和值
A1 S+01a
A2 S+02a
A3 S+03a
A4 S-01a
A5 S-01b
A6 S-02a
Since this is generate by VBA, and I would like to order in this order
由于这是由VBA生成的,我想按此顺序订购
A1 S+01a
A2 S-01a
A3 S-01b
A4 S+02a
A5 S-02b
A6 S+03a
Sorting Rules will be
排序规则将是
- plus sign with smallest number behind
加号后面的号码最小
- minus sign with the same number as plus sign (if exist)
减号与加号相同(如果存在)
- (For minus sign only) alphabetical order of the last character
(仅限减号)最后一个字符的字母顺序
I would like to perform this action by VBA (since data length will be bigger) Any clue for this situation?
我想通过VBA执行此操作(因为数据长度会更大)这种情况的任何线索?
Thank you for the answer/clue.
谢谢你的回答/线索。
2 个解决方案