Rss & SiteMap
Foxtable(狐表) http://www.foxtable.com
当2设定的值过大,在a+2大于最后列位置时,会报错,可以这样避免:
dim a as Integer
dim b as Integer
For Each c As Col In currenttable.Cols
if c.Visible = true
if c.Index <= 8
a = a +1
end if
else
b = b +1
end if
Next
if a+b < currenttable.Cols.Count
currenttable.Select(0,a+8)
else
MessageBox.show("对不起,指定列大于总列数")
currenttable.Select(0,0)
end if