+ Reply to Thread
Results 1 to 5 of 5

If cell 1 is A then cell 2 should be X

  1. #1
    Forum Contributor
    Join Date
    04-26-2017
    Location
    Brussels, Belgium
    MS-Off Ver
    2010
    Posts
    133

    Post If cell 1 is A then cell 2 should be X

    Hello,

    can anyone help me with a macro code (for sheet 1) to do the following:

    If cell Sheet1.A1 equals value in Sheet2.B3 then the contents of Sheet1.A2 is changed to value Sheet2.B6

    Thank you for your help!

  2. #2
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,810

    Re: If cell 1 is A then cell 2 should be X

    Try:
    Please Login or Register  to view this content.
    You can say "THANK YOU" for help received by clicking the Star symbol at the bottom left of the helper's post.
    Practice makes perfect. I'm very far from perfect so I'm still practising.

  3. #3
    Forum Contributor
    Join Date
    04-26-2017
    Location
    Brussels, Belgium
    MS-Off Ver
    2010
    Posts
    133

    Re: If cell 1 is A then cell 2 should be X

    I added that code in another sub:
    Please Login or Register  to view this content.
    The code did nothing when I just pasted it with the Sub Test() in my worksheet code.
    Now it works, but everytime I update a cell the program is processing the macro in an annoying way (I notice that it's working slower during every entry and the sheet is flashing a little bit if you understand what I mean).

    Is there any fix for this?

  4. #4
    Forum Contributor
    Join Date
    04-26-2017
    Location
    Brussels, Belgium
    MS-Off Ver
    2010
    Posts
    133

    Re: If cell 1 is A then cell 2 should be X

    Fixed it like this:
    Please Login or Register  to view this content.

  5. #5
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,810

    Re: If cell 1 is A then cell 2 should be X

    Glad it worked out.

+ 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] When one cell equals value of another cell, then third cell displays text of fourth cell?
    By spookymyo in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-12-2021, 02:12 PM
  2. Replies: 6
    Last Post: 01-23-2018, 04:49 AM
  3. Replies: 3
    Last Post: 01-02-2018, 08:15 PM
  4. If Cell A is equal to Cell B replace the data from Cell A with Cell C. How can I do this.
    By tristanhathaway in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-01-2014, 08:05 PM
  5. [SOLVED] How to create/run "cell A equals Cell B put Cell C info in Cell D
    By abmb161 in forum Excel General
    Replies: 7
    Last Post: 02-05-2014, 02:20 AM
  6. Replies: 1
    Last Post: 11-06-2013, 02:56 AM
  7. Replies: 1
    Last Post: 11-03-2012, 09:05 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