天龙八部 发表于 2006-10-17 13:04:00

[VBA]为社么这样可以那样却不行呢?

<P><BR>&nbsp; Dim FilterType(0) As Integer<BR>&nbsp;&nbsp;&nbsp; Dim FilterData(0) As Variant<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; FilterType(0) = 0<BR>&nbsp;&nbsp;&nbsp; FilterData(0) = "3DSolid"<BR>&nbsp;&nbsp;&nbsp; sset.SelectOnScreen FilterType, FilterData</P>
<P>改成</P>
<P>Dim FilterType As Integer<BR>&nbsp;&nbsp;&nbsp; Dim FilterData As Variant<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; FilterType = 0<BR>&nbsp;&nbsp;&nbsp; FilterData = "3DSolid"<BR>&nbsp;&nbsp;&nbsp; sset.SelectOnScreen FilterType, FilterData</P>
<P>运行就不行了,同样申明了啊!</P>

流星蔡园 发表于 2006-10-19 09:04:00

<P>人家SelectOnScreen只对数组感兴趣嘛</P>
<P>^_^</P>
页: [1]
查看完整版本: [VBA]为社么这样可以那样却不行呢?