#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 389
Default Color Index

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
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default Color Index

Perhaps not for MACs.

Consider xlNone
--
Gary''s Student - gsnu200789


"Steven" wrote:

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

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 421
Default Color Index

Hi Steve,

I believe that the constant is universal.

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



---
Regards.
Norman


"Steven" wrote in message
...
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


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 421
Default Color Index

Hi Gary,

My apologies!

I failed to see your response when I posted.



---
Regards.
Norman
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Color Index

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


"Norman Jones" wrote in message
...
Hi Steve,

I believe that the constant is universal.

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



---
Regards.
Norman


"Steven" wrote in message
...
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





  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 421
Default Color Index

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
"Rick Rothstein (MVP - VB)" wrote in
message ...
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


  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Color Index

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


"Norman Jones" wrote in message
...
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
"Rick Rothstein (MVP - VB)" wrote in
message ...
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



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Custom Color/Color Index FARAZ QURESHI Excel Discussion (Misc queries) 4 February 29th 08 05:19 PM
Chart axes color index vs font color index [email protected] Charts and Charting in Excel 4 December 7th 06 04:05 PM
fr default color index, need color # Janis Excel Programming 3 August 23rd 06 02:31 PM
Setting Background Color RGB (Always goes to closest index color) [email protected] Excel Programming 6 December 2nd 05 11:47 PM
color index marina madeleine Excel Programming 6 September 26th 04 06:15 AM


All times are GMT +1. The time now is 02:38 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"