+ Reply to Thread
Results 1 to 3 of 3

Excel 2002

  1. #1
    אמיר
    Guest

    Excel 2002

    Hello all,

    If I have in A1 red background color.
    What should i write down in B1 inroder to return the color value of A1?
    Is it a function or vba code?

    Thanks
    Amir

  2. #2
    Toppers
    Guest

    RE: Excel 2002

    Hi,

    Range("b1").Interior.ColorIndex = Range("a1").Interior.ColorIndex ' Set colour

    Range("b1= Range("a1").Interior.ColorIndex ' Value of colour index

    "אמיר" wrote:

    > Hello all,
    >
    > If I have in A1 red background color.
    > What should i write down in B1 inroder to return the color value of A1?
    > Is it a function or vba code?
    >
    > Thanks
    > Amir


  3. #3
    Bob Phillips
    Guest

    Re: Excel 2002

    Function ColorIndex(rng As Range)
    If rng.Cells.Count = 1 Then
    ColorIndex = rng.Interior.ColorIndex
    End If
    End Function


    use like

    =ColorIndex(A1)

    --
    HTH

    Bob Phillips

    "????" <@discussions.microsoft.com> wrote in message
    news:[email protected]...
    > Hello all,
    >
    > If I have in A1 red background color.
    > What should i write down in B1 inroder to return the color value of A1?
    > Is it a function or vba code?
    >
    > Thanks
    > Amir




+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1