|
原文链接:https://jingyan.baidu.com/article/cb5d61055d5d35405c2fe0c0.html
- Sub adc()
-
- On Error Resume Next '出错继续执行后面的代码
-
- 'Worksheets("Sheet1").Range("A1").Font.ColorIndex = 3
-
- 'Selection.Font.ColorIndex = 5
-
- 'Range("A1:A11").Select '选择辅助的区域
-
- 'Selection.Copy '复制
-
- 'Range("A13").Select '选择粘贴的第一个单元格
-
- 'ActiveSheet.Paste '粘贴
-
- 'Selection.Font.ColorIndex = 5 '字的颜色号为3 红色
-
- Selection.Interior.ColorIndex = 44 ' 背景的颜色为3 红色
-
- 'Selection.Font.Color = RGB(0, 255, 0) '字的颜色绿色
-
- 'Selection.Interior.Color = RGB(0, 0, 255) '背景的颜色蓝色
-
- End Sub
复制代码
|
|