
2个回答
追问
vba
追答
Private Sub CommandButton1_Click()
Dim rng As Range
For Each rng In ActiveSheet.Range("e3:j16")
If Len(rng) = 10 Then
rng.Interior.ColorIndex = 3
ElseIf Len(rng) = 9 Then
rng.Interior.ColorIndex = 6
ElseIf Len(rng) = 8 Then
rng.Interior.ColorIndex = 10
ElseIf Len(rng) = 7 Then
rng.Interior.ColorIndex = 5
End If
Next
End Sub

2024-07-20 广告
博思AIPPT是基于ai制作PPT的智能在线工具,它提供了4种AI制作PPT的方式,包括AI生成大纲、AI直接生成PPT、文本生成PPT、AI提炼word文档生成PPT,一站式集成多种AI生成PPT的方式,可满足办公用户的不同需求和使用场景...
点击进入详情页
本回答由博思aippt提供
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询