+ Reply to Thread
Results 1 to 7 of 7

When cell change do something in the cell to right

  1. #1
    Forum Contributor
    Join Date
    12-05-2008
    Location
    Kiruna
    Posts
    163

    When cell change do something in the cell to right

    Hi this code runs a macro when a cell is changed in the range A1:A5


    Please Login or Register  to view this content.
    Is it possible to tweak this so if I for example make change in cell always add a value in the cell to the right?

    For example if the value is changed in A1 the value “hello” is added to cell B2 or if the change is in A5 the value “hello” is added to cell B5
    Last edited by Petter120; Today at 06:22 AM.
    Last edited by Petter120; 01-10-2021 at 11:28 AM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,807

    Re: When cell change do something in the cell to right

    Administrative Note:

    We would very much like to help you with your query, however you need to include code tags around your code.

    Please take a moment to add the tags. Posting code between tags makes your code much easier to read and copy for testing, and it also maintains VBA formatting.

    Please see Forum Rule #2 about code tags and adjust accordingly. Click on Edit to open your post, then highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here

    (Note: this change is not optional. No help to be offered until this moderation request has been fulfilled.)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Contributor
    Join Date
    12-05-2008
    Location
    Kiruna
    Posts
    163

    Re: When cell change do something in the cell to right

    Sorry i submited the question from my phone and i was not able to add code tags but it solved now.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,807

    Re: When cell change do something in the cell to right

    That's not true - code tags can be typed in (no need to use toolbar clicks) - can be done on any mobile device.

    Thanks for adding them here.

  5. #5
    Forum Contributor
    Join Date
    12-05-2008
    Location
    Kiruna
    Posts
    163

    Re: When cell change do something in the cell to right

    Ahh ok did not know that

  6. #6
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: When cell change do something in the cell to right

    Please try

    Please Login or Register  to view this content.
    or

    Please Login or Register  to view this content.

  7. #7
    Forum Contributor
    Join Date
    12-05-2008
    Location
    Kiruna
    Posts
    163

    Re: When cell change do something in the cell to right

    Thank you it works fine

+ 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] VBA Worksheet Change Event - Cell 1 (%) = Cell 2 ($) & Cell 2 ($) = Cell 1 (%)
    By jimmyw3 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 07-16-2019, 02:56 PM
  2. Replies: 6
    Last Post: 01-23-2018, 04:49 AM
  3. Replies: 3
    Last Post: 01-02-2018, 08:15 PM
  4. Replies: 4
    Last Post: 05-08-2015, 10:56 AM
  5. Replies: 1
    Last Post: 11-28-2013, 02:16 AM
  6. Replies: 2
    Last Post: 06-18-2013, 01:21 PM
  7. Change Cell Font Color if Cell Contains Formula Referencing Another Cell
    By wilcox.patrick in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-10-2012, 10:24 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