Ответ 1
Range("Z1").Interior.ColorIndex = xlNone
В настоящее время у меня есть:
Range("Z1").Interior.Color = RGB(255, 255, 255)
Но это вытирает границы ячеек. Вместо этого я просто хотел бы установить прозрачность ячеек в диапазоне до 1.0. Документы, похоже, предполагают, что они не существуют (?).
Спасибо!
Range("Z1").Interior.ColorIndex = xlNone
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Target.Cells.Count > 1 Then Exit Sub
Application.ScreenUpdating = False
' Clear the color of all the cells
Cells.Interior.ColorIndex = 0
With Target
' Highlight the entire row and column that contain the active cell
.EntireRow.Interior.ColorIndex = 8
.EntireColumn.Interior.ColorIndex = 8
End With
Application.ScreenUpdating = True
End Sub
Возможно, простой подход будет (Symbol).(line or background)Color = -1 'Transparent
.