Excel精英培训网

 找回密码
 注册
数据透视表40+个常用小技巧,让你一次学会!
楼主: uranus1997

[习题] 【V入2期】数组入门练习七

[复制链接]
发表于 2008-7-6 10:16 | 显示全部楼层

游客,如果您要查看本帖隐藏内容请回复
回复

使用道具 举报

发表于 2008-7-6 15:39 | 显示全部楼层

游客,如果您要查看本帖隐藏内容请回复
回复

使用道具 举报

发表于 2008-7-7 00:20 | 显示全部楼层

游客,如果您要查看本帖隐藏内容请回复
</p><p>终于熬夜把最后一题搞定了,请老师批示!</p>
回复

使用道具 举报

发表于 2008-7-7 17:42 | 显示全部楼层

游客,如果您要查看本帖隐藏内容请回复
回复

使用道具 举报

发表于 2008-7-8 13:59 | 显示全部楼层

游客,如果您要查看本帖隐藏内容请回复
回复

使用道具 举报

发表于 2008-7-8 14:38 | 显示全部楼层

<p>
游客,如果您要查看本帖隐藏内容请回复
</p>
[此贴子已经被作者于2008-7-8 14:47:59编辑过]
回复

使用道具 举报

发表于 2008-7-8 18:36 | 显示全部楼层

Private Sub CommandButton1_Click() '练习七<br/>Dim arr() As String, arr1() As String, i As Integer<br/>arr = Split([a1], ",")<br/>ReDim arr1(0 To UBound(arr), 1 To 2)<br/>&nbsp;&nbsp;&nbsp; For i = 0 To UBound(arr)<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If InStr(arr(i), "女") &lt;&gt; 0 Then<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; arr1(i, 1) = Left(arr(i), Len(arr(i)) - 3)<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; arr1(i, 2) = "女"<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Else<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; arr1(i, 1) = arr(i)<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; arr1(i, 2) = "男"<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End If<br/>&nbsp;&nbsp;&nbsp; Next i<br/>&nbsp;&nbsp;&nbsp; [b6].Resize(UBound(arr) + 1, 2) = arr1<br/>End Sub
回复

使用道具 举报

发表于 2008-7-8 23:56 | 显示全部楼层

楼主真是厉害,一下子出了这么多的题.
回复

使用道具 举报

发表于 2008-7-9 01:52 | 显示全部楼层

精彩
回复

使用道具 举报

发表于 2008-7-9 02:42 | 显示全部楼层

游客,如果您要查看本帖隐藏内容请回复
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|Excel精英培训 ( 豫ICP备11015029号 )

GMT+8, 2024-4-29 11:44 , Processed in 0.255425 second(s), 9 queries , Gzip On, Yac On.

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表