Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / May 2008

Tip: Looking for answers? Try searching our database.

Color Index

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Steven - 30 May 2008 16:59 GMT
If a cell has no color index attached is it's Interior.ColorIndex -4142 for
everyone or can it be different on different computers?

Thank you,

Steven
Gary''s Student - 30 May 2008 17:06 GMT
Perhaps not for MACs.

Consider xlNone
Signature

Gary''s Student - gsnu200789

> If a cell has no color index attached is it's Interior.ColorIndex -4142 for
> everyone or can it be different on different computers?
>
> Thank you,
>
> Steven
Norman Jones - 30 May 2008 17:39 GMT
Hi Gary,

My apologies!

I failed to see your response when I posted.

---
Regards.
Norman
Norman Jones - 30 May 2008 17:23 GMT
Hi Steve,

I believe that the constant is universal.

However, as I have a badmemory,
I use: xlNone.

---
Regards.
Norman

> If a cell has no color index attached is it's Interior.ColorIndex -4142
> for
[quoted text clipped - 3 lines]
>
> Steven
Rick Rothstein (MVP - VB) - 30 May 2008 20:44 GMT
I think it is always better to use the built-in VB constants (such as
xlNone, vbLf, etc.) than the so called "magic numbers" (such as -4142, 10,
etc.) as the built-in constants go a long way to making your code
self-documenting.

Rick

> Hi Steve,
>
[quoted text clipped - 14 lines]
>>
>> Steven
Norman Jones - 30 May 2008 21:57 GMT
Hi Rick,

I always use the named constants (within
Excel); my 'bad memory' was merely an
artifice to render the implicit suggestion more
palatable!

---
Regards.
Norman
>I think it is always better to use the built-in VB constants (such as
>xlNone, vbLf, etc.) than the so called "magic numbers" (such as -4142, 10,
>etc.) as the built-in constants go a long way to making your code
>self-documenting.
>
> Rick
Rick Rothstein (MVP - VB) - 30 May 2008 22:07 GMT
And my comments were not directed to you specifically, rather, they were
directed to the community at large (either within this thread or the
archives)... your message was just a convenient 'vehicle' with which to make
my point.

Rick

> Hi Rick,
>
[quoted text clipped - 12 lines]
>>
>> Rick
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.