|
楼主 |
发表于 2012-12-1 09:24
|
显示全部楼层
[广告] Excel易用宝 - 提升Excel的操作效率 · Excel / WPS表格插件 ★ 免费下载 ★ ★ 使用帮助★
- Public s As Double
- Sub ctp_119()
- Dim bl As Boolean
- Dim bb As Boolean
- Dim i As Long
- Dim k As Double
- Dim str As String
- str = InputBox("请输入流动字符串!!!", "输入对话框", "中华人民共和国万岁")
- [A1] = str
- k = 500000 - s
- Do
- For i = 1 To k
- VBA.DoEvents
- Next i
- [A1] = Mid(Range("A1"), 2, VBA.Len(Range("A1")) - 1) & VBA.Left(Range("A1"), 1)
- Range("a1").Characters(1, 2).Font.ColorIndex = 5
- Range("a1").Characters(3, 2).Font.ColorIndex = 6
- Range("a1").Characters(5, 2).Font.ColorIndex = 3
- Range("a1").Characters(7, 2).Font.ColorIndex = 4
- If bb Then
- Range("a1").Interior.ColorIndex = 35
- bb = False
- Else
- Range("a1").Interior.ColorIndex = 38
- bb = True
- End If
- Loop While bl <> True
- End Sub
- Sub stopp()
- End
- End Sub
复制代码 以上是核心代码,如果敢兴趣的坛友,不妨提出意见和建议。 |
|