![](/img/trans.png)
[英]change Cell colour based on cell colour of another cell excel 2016
[英]change colour of cell if cell value is coppied in excel
我希望复制“ AS”颜色中的单元格,以复制单元格值,即按cntrl + c时应更改单元格颜色。 谁能帮我编辑下面的宏?
Sub ccopy()
Dim x As Integer
x = Selection.Column
'MsgBox x
If x = 45 Then
With Selection
.Interior.ColorIndex = 27
End With
End If
'MsgBox "copy"
Selection.Copy
End Sub
上面的代码是完美的。 只是我忘了使用triger来运行它。 ;-)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.