|
-
Jun 30th, 2004, 08:56 AM
#1
Thread Starter
New Member
Get Excell Cell color ?
Could you possibly explain me or show some part of code:
How can I get active cell color form Excell sheet.
Thanks in advance
-
Jun 30th, 2004, 09:23 AM
#2
I think its selection.interior.color
Easiest way is to record a new macro in excel, change the colour of the cell, stop recording and view the code. It should tell you how to get the number for the colour.
Vince
Feeling like a fly on the inside of a closed window (Thunk!)
If I post a lot, it is because I am bored at work! ;D Or stuck...
* Anything I post can be only my opinion. Advice etc is up to you to persue...
-
Jul 1st, 2004, 04:58 AM
#3
Ecniv is spot on, it's :
VB Code:
Private Sub CommandButton1_Click()
MsgBox Cells(1, 1).Interior.Color
End Sub
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
|