VBAsorting差异Excel 2010 vs 2013

这条线

wsCheckAll.Range("NR2:NR" & TicCount).Sort Key1:=wsCheckAll.Columns("NR"), Order1:=xlAscending, Orientation:=xlTopToBottom 

在Excel 2010中sorting范围“NR2:NR”&TicCount罚款。

在Excel 2013中,标题NR1被分类到列表中,sorting甚至不是正确的,只是把所有的东西都乱了起来。 该列表可以是string或双打或整数

我尝试了其他的sorting方式,如:

  With wsCheckAll.Range("NR2:NR" & TicCount).Sort .Header = xlYes .MatchCase = False .Orientation = xlTopToBottom .SortMethod = xlPinYin .Apply End With 

没有这样的运气。 在切换到2013年之前,我在所有的macros中使用了第一种方法,没有任何问题,现在没有任何工作。 有没有人有任何见解? 我似乎可以find差异的文档或任何其他人有头sorting到一个范围。