+ Reply to Thread
Results 1 to 2 of 2

Change cell based on value

  1. #1
    Forum Contributor
    Join Date
    08-02-2012
    Location
    Pune
    MS-Off Ver
    Office 365 (Win 10)
    Posts
    489

    Change cell based on value

    Hi All,

    I have 2 sheets in a workbook, Cover_Sheet & Parameters

    What i am trying to do is, If value of 'C2' changes to 1 in Cover_Sheet, Value of 'B3' in Parameters sheet should convert to "ABC"

    I have written following code for that


    PHP Code: 
    Sub Worksheet_Chan(ByVal Target As Range)
    If 
    Worksheet("Cover_Sheet").Range("C2").Value "1" Then

    Range
    ("B3").Value "ABC"

        
    End If

    End Sub 
    and pasted that in the VBA of 'Parameters' Tab

    But it is not working. Can anyone please help?
    Please make the Post as solved, when you get your answer & Click * if you like my suggestion

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,864

    Re: Change cell based on value

    Perhaps you should use
    Please Login or Register  to view this content.
    not just Chan
    Moreover this code, if it is to react on manual changes in Cover_Sheet - shaall be inserted in Cover_Sheet code (so right click on Cover_Sheet tab, select Display code from popup and paste your code there.

    if this code is to change B3 in Parameters to "ABC" then respective line shall read:
    Please Login or Register  to view this content.
    Best Regards,

    Kaper

+ 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. [SOLVED] EXCEL NEWB.....Change cell color based on text in a cell on another sheet
    By anon1988 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-27-2014, 12:16 AM
  2. Change the content of a cell based on change the current date
    By aimanraya in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-14-2014, 07:07 AM
  3. Macro to change colour of cell based on finding a specific word in the cell
    By Shelby761 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-24-2014, 09:46 AM
  4. Replies: 5
    Last Post: 12-07-2013, 02:21 PM
  5. Replies: 3
    Last Post: 11-08-2013, 03:10 PM
  6. Replies: 3
    Last Post: 12-16-2012, 12:49 PM
  7. Change cell values based on Active Cell Address in Excel 2007 with no VBA
    By bdmistri in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-07-2009, 02:01 PM

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