|
-
Nov 11th, 2002, 09:48 AM
#1
Thread Starter
Frenzied Member
VBA Excel - Changing the backcolour of cells
Is this possible? If so, how?
Thanks
Tom
-
Nov 11th, 2002, 10:07 AM
#2
Addicted Member
it is possible, but how do you intend to specify the required cells that need altering?
-
Nov 11th, 2002, 10:10 AM
#3
Thread Starter
Frenzied Member
well thats what I need to do.
I am using the following to change the value:
VB Code:
Sheet1.Cells(4, 5).Value =
I want somthing similar to change the back colour
-
Nov 11th, 2002, 10:13 AM
#4
Frenzied Member
This is what I got recording a macro...
VB Code:
Range("E5").Select
With Selection.Interior
.ColorIndex = 43
.Pattern = xlSolid
.PatternColorIndex = xlAutomatic
End With
Surely you can do the same and adapt it??
/Andrew
-
Nov 11th, 2002, 10:14 AM
#5
Addicted Member
Try this
Range("F7").Select
With Selection.Interior
.ColorIndex = 11 'dark blue. Try other numbers to get what you want
.Pattern = xlSolid
End With
Let me know how you get on
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|