+ Reply to Thread
Results 1 to 2 of 2

Code for Worksheet Change Event Needed

  1. #1
    Valued Forum Contributor
    Join Date
    10-26-2008
    Location
    Birmingham, UK
    MS-Off Ver
    All versions up to 2010
    Posts
    1,025

    Code for Worksheet Change Event Needed

    Hi All
    I am looking for a small piece of code to use in a Worksheet_Change event please.
    Basically when a figure is entered on Column C I want to add that value to the figure in Column D on the same row as the change.
    Any help appreciated.
    Many thanks in advance.
    Tony

  2. #2
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,197

    Re: Code for Worksheet Change Event Needed

    Hi, Tony,

    maybe something like this (right click on worksheet tab, choose ViewCode, paste into code window):
    Please Login or Register  to view this content.
    This will check for a change of one cell first and not fire the event in casae more than one cell is changed. After that itīs checked if column C has been altered. And then there are two checks for numeric values in both Column C and Column D before the cell in Column D is updated.

    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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