Excel精英培训网

 找回密码
 注册
12
返回列表 发新帖
楼主: 被禁锢的风

[习题] V中第04讲(01号-22号)作业上交贴

   关闭 [复制链接]
发表于 2012-2-17 18:22 | 显示全部楼层
谢谢老师指点
第4讲作业-012-fjmxwrs.zip (37.25 KB, 下载次数: 31)

点评

全部正确,第一题用了数组公式,第二题考虑了多个工作簿的情况。  发表于 2012-2-19 16:46
回复

使用道具 举报

发表于 2012-2-18 14:31 | 显示全部楼层

  1. Function ChkShExists(sheetName)
  2.     Dim sht As Worksheet
  3.     Dim wb As Workbook
  4.     ChkShExists = "不存在"
  5.     For Each wb In Workbooks
  6.         For Each sht In wb.Worksheets
  7.             If sht.Name = sheetName Then
  8.                 If ChkShExists = "不存在" Then ChkShExists = ""
  9.                 ChkShExists = ChkShExists & wb.Name & "   "
  10.             End If
  11.         Next sht
  12.     Next wb
  13. End Function

  14. Function ColName(cel)
  15.     Dim num As Integer
  16.     Dim iFst As Integer
  17.     Dim iSec As Integer
  18.     num = cel.Column
  19.     iFst = num \ 26
  20.     If iFst > 0 Then
  21.         ColName = Chr(iFst + 64)
  22.     End If
  23.     iSec = num Mod 26
  24.     ColName = ColName & Chr(iSec + 64)
  25. End Function

  26. Function ColorStr(rng As Range)
  27.     Dim i%
  28.     For i = 1 To Len(rng.Value)
  29.         If rng.Characters(i, 1).Font.ColorIndex = 3 Then
  30.             ColorStr = ColorStr & VBA.Mid(rng.Value, i, 1)
  31.         End If
  32.     Next i
  33. End Function
复制代码

点评

第一题没做,第二题考虑了多个工作簿的情况  发表于 2012-2-19 16:51
回复

使用道具 举报

发表于 2012-2-19 16:00 | 显示全部楼层
不会做了。只做了后面的。
第04讲作业-09-jsgslgd.rar (32.12 KB, 下载次数: 1)
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-5-4 07:24 , Processed in 0.243527 second(s), 13 queries , Gzip On, Yac On.

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

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