PC Review


Reply
 
 
Steven
Guest
Posts: n/a
 
      30th May 2008
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
 
Reply With Quote
 
 
 
 
Gary''s Student
Guest
Posts: n/a
 
      30th May 2008
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

 
Reply With Quote
 
Norman Jones
Guest
Posts: n/a
 
      30th May 2008
Hi Steve,

I believe that the constant is universal.

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



---
Regards.
Norman


"Steven" <(E-Mail Removed)> wrote in message
news:F429ADB9-0998-4B34-9E46-(E-Mail Removed)...
> 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


 
Reply With Quote
 
Norman Jones
Guest
Posts: n/a
 
      30th May 2008
Hi Gary,

My apologies!

I failed to see your response when I posted.



---
Regards.
Norman
 
Reply With Quote
 
Rick Rothstein \(MVP - VB\)
Guest
Posts: n/a
 
      30th May 2008
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" <(E-Mail Removed)> wrote in message
newsA237BC1-2E88-48A4-89D5-(E-Mail Removed)...
> Hi Steve,
>
> I believe that the constant is universal.
>
> However, as I have a badmemory,
> I use: xlNone.
>
>
>
> ---
> Regards.
> Norman
>
>
> "Steven" <(E-Mail Removed)> wrote in message
> news:F429ADB9-0998-4B34-9E46-(E-Mail Removed)...
>> 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

>


 
Reply With Quote
 
Norman Jones
Guest
Posts: n/a
 
      30th May 2008
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)" <(E-Mail Removed)> wrote in
message news:(E-Mail Removed)...
>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 With Quote
 
Rick Rothstein \(MVP - VB\)
Guest
Posts: n/a
 
      30th May 2008
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" <(E-Mail Removed)> wrote in message
news7F79ABD-A2B4-42F2-9631-(E-Mail Removed)...
> 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)" <(E-Mail Removed)> wrote in
> message news:(E-Mail Removed)...
>>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 With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
RE: Color Codes: Different color with same color Index Ryan H Microsoft Excel Programming 0 5th Feb 2010 04:46 PM
RE: Color Codes: Different color with same color Index Ryan H Microsoft Excel Programming 0 5th Feb 2010 04:42 PM
Shape color index does not match cell color index Chrisso Microsoft Excel Programming 4 27th Apr 2009 11:47 AM
Chart axes color index vs font color index dennis.benjamin@gmail.com Microsoft Excel Charting 4 7th Dec 2006 04:05 PM
Setting Background Color RGB (Always goes to closest index color) ryanmhuc@yahoo.com Microsoft Excel Programming 6 2nd Dec 2005 11:47 PM


Features
 

Advertising
 

Newsgroups
 


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