+ Reply to Thread
Results 1 to 4 of 4

insert text based on another cells colour?

  1. #1
    Registered User
    Join Date
    11-01-2010
    Location
    manchester
    MS-Off Ver
    Excel 365
    Posts
    23

    insert text based on another cells colour?

    is it possible to put a '1' in cell based on another cells colour?

    I have cell A1 through to A10 that i can click to make green.

    Private Sub Worksheet_SelectionChange(ByVal Target As Range)
    If Not Application.Intersect(Range("A1:A10"), Target) Is Nothing Then
    Target.Interior.ColorIndex = 4
    End If
    End Sub

    based on which cell i turn green ie A1. can I put a 1 in B1, and so on, turn A5 green and B5 gets a 1.

    when I un select the colours in row A the number 1's in B disappear.

    Regards,
    Warren.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    47,995

    Re: insert text based on another cells colour?

    Do it at the same time you set the colour in column A

    Please Login or Register  to view this content.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    11-01-2010
    Location
    manchester
    MS-Off Ver
    Excel 365
    Posts
    23

    Re: insert text based on another cells colour?

    Quote Originally Posted by TMS View Post
    Do it at the same time you set the colour in column A

    Please Login or Register  to view this content.
    What can I say!!!!!!!
    You are a star.
    thank you for the quick reply!
    Regards,
    Warren.

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    47,995

    Re: insert text based on another cells colour?

    You're welcome. Thanks for the rep.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. How to Insert text/formula in to cells based on the text in the cell beside
    By mikeymeteora in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 02-25-2020, 07:32 PM
  2. conditional formatting fill cells based on text, how to find sum based on CF colour
    By tubbybear in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 08-27-2016, 12:04 PM
  3. [SOLVED] Formatting a cell with a colour based on text in other cells.
    By Borneorose in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-02-2013, 08:24 AM
  4. Replies: 1
    Last Post: 09-10-2013, 10:28 PM
  5. How to make row change colour based on text colour in row?
    By Joanna13 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-02-2010, 04:39 PM
  6. Cell Colour based on text in Range of cells
    By viewmaster in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-02-2006, 11:53 PM
  7. Cell Colour based on text in Range of cells
    By viewmaster in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-02-2006, 11:45 PM

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