作者: ppsnow 时间: 2006-8-25 03:17
人呢,怎么没个人帮帮偶的,,,作者: ppsnow 时间: 2006-8-25 03:23
我等 !!作者: 老鬼 时间: 2006-8-25 03:28
For Each cl In Columns("a:e") '循环列
If Cells(1, cl.Column) <> Range("h3") Then ’如果不等于时间
cl.Hidden = True '隐藏
End If
Next
For Each cl In Columns("a:e")
If Cells(1, cl.Column) = Range("h3") Then
cl.Hidden = False
End If
Next作者: ppsnow 时间: 2006-8-25 03:39
看不懂,
Dim ErrorMsgbox As VbMsgBoxResult
Dim i, a, b, d, count As Integer
If CmbStart.ListIndex > Cmbend.ListIndex Then
ErrorMsgbox = MsgBox("The start month must less then the end month, Please choose again", vbOKOnly + vbExclamation, "Error")
Else
CmbStart.ColumnHeads = a
Cmbend.ColumnHeads = b
d = count = Range("I5").CurrentRegion.Columns.count
For i = 9 To a
Range(Cells(5, 9), Cells(5, i)).Select
Selection.EntireRow.Hidden = ture
Next i