+ Reply to Thread
Results 1 to 7 of 7

Cell value is changed, the cells change the color

  1. #1
    Registered User
    Join Date
    05-06-2010
    Location
    istanbul,Türkiye
    MS-Off Ver
    MS Excel 2010
    Posts
    6

    Cell value is changed, the cells change the color

    Hi Excel professional, J and M columns, the value of any cell is changed, the cells change color as I want TURQUOISE. But I do not know how. What might help, thank you.

  2. #2
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284

    Re: Cell value is changed, the cells change the color

    Sounds like either conditional formatting (Format>Conditional Formatting), or event code. When you opened the workbook, did it ask to enable macros? Try looking at the sheet code, select the worksheet tab, right-click, and select View Code.

  3. #3
    Registered User
    Join Date
    05-06-2010
    Location
    istanbul,Türkiye
    MS-Off Ver
    MS Excel 2010
    Posts
    6

    Re: Cell value is changed, the cells change the color

    I can not use conditional formatting because the cells in column J and M values are already there. My goal here, I have taken the data automatically to SQL database vendor and unit prices by the amount of manual intervention to be provided. Manually change the first glance that the cells in which I need it to be noticed.

  4. #4
    Registered User
    Join Date
    05-06-2010
    Location
    istanbul,Türkiye
    MS-Off Ver
    MS Excel 2010
    Posts
    6

    Re: Cell value is changed, the cells change the color

    I'm doing research on this subject for a long time. I could not find an example yet, but the overlap exactly. Worksheet_SelectionChange event procedure within a loop should be noticed. But unfortunately I do not know how.

  5. #5
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284

    Re: Cell value is changed, the cells change the color

    Quote Originally Posted by lsuersoy View Post
    I'm doing research on this subject for a long time. I could not find an example yet, but the overlap exactly. Worksheet_SelectionChange event procedure within a loop should be noticed. But unfortunately I do not know how.
    I thought you were saying that a cell changed colour automatically, and wanted to understand why.

  6. #6
    Registered User
    Join Date
    05-06-2010
    Location
    istanbul,Türkiye
    MS-Off Ver
    MS Excel 2010
    Posts
    6

    Re: Cell value is changed, the cells change the color

    My English is not very good. I am using a translation program. Punctuation is not paying attention to the meaning of disorder can be. If you change a cell. Replacement of the cell. How to automatically change the color of the code should be?

  7. #7
    Registered User
    Join Date
    05-06-2010
    Location
    istanbul,Türkiye
    MS-Off Ver
    MS Excel 2010
    Posts
    6

    Re: Cell value is changed, the cells change the color

    I found the answer, thank you.

    Private Sub Worksheet_Change(ByVal Target As Range)
    st_row = Target.Row
    st_col = Target.Column
    If (st_col = 10 Or st_col = 13) and (st_row < 101) Then
    If Target = "" Then
    Cells(st_row, st_col).Interior.ColorIndex = xlNone
    Else
    Cells(st_row, st_col).Interior.ColorIndex = 8
    End If
    End If
    End Sub

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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