Home |
Search |
Today's Posts |
#13
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
' Change Cell Background Color
' I figured out how to restore the background fill color as shown below but by doing this, it inadvertently removes the gridlines. You can set the background fill to "No Color" to get this back, but that defeats the whole purpose of restoring the background fill color in the first place. Any help is appreciated. 'other variables here ' ......... Dim vCellBackgroundFill As Variant 'store color Dim vCellBackgroundNoFill As Variant 'background grid vCellBackgroundFill = Selection.Interior.Color ' Do other work here .... With Selection.Interior .Color = vCellBackgroundFill .Pattern = xlSolid .PatternColorIndex = xlAutomatic .TintAndShade = 0 .PatternTintAndShade = 0 End With Thanks "GS" wrote in message ... Also working... Const vFontname As Variant = "Trebuchet MS" Selection.Font.Name = vFontname -- Garry Free usenet access at http://www.eternal-september.org Classic VB Users Regroup! comp.lang.basic.visual.misc microsoft.public.vb.general.discussion |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel 2003 bank ledger spreadsheet background fill shading | Excel Worksheet Functions | |||
How do I fix the background shading by position? | Excel Discussion (Misc queries) | |||
Excel Background Shading | Excel Discussion (Misc queries) | |||
Restoring Excel gridlines after removing background shading? | Excel Discussion (Misc queries) | |||
Background Cell shading colors | Excel Programming |