+ Reply to Thread
Results 1 to 5 of 5

Update values on Target Ranges

  1. #1
    Forum Contributor unley's Avatar
    Join Date
    11-27-2008
    Location
    South Australia
    MS-Off Ver
    MS Office 2007
    Posts
    253

    Update values on Target Ranges

    Hi all
    I am trying to add values when selecting cells.
    I was able to do a single cell (B2) to add value to B8, but cannot work out how to add more by using ElseIf?
    For example,
    B3 is equal value 4
    B4 is equal value 3
    B5 is equal value 2
    B6 is equal value 1

    I cannot add attachment so I quote the codes below.

    Thanks in advance.

    Please Login or Register  to view this content.
    Last edited by unley; 10-15-2019 at 06:37 AM.
    I'm using MS Office 2013

  2. #2
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,078

    Re: Update values on Target Ranges

    Maybe something like
    Please Login or Register  to view this content.

  3. #3
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,078

    Re: Update values on Target Ranges

    Or maybe
    Please Login or Register  to view this content.

  4. #4
    Forum Contributor unley's Avatar
    Join Date
    11-27-2008
    Location
    South Australia
    MS-Off Ver
    MS Office 2007
    Posts
    253

    Re: Update values on Target Ranges

    Hi Fluff13, thank you very much for your time, much appreciated
    I choose the first one because I am able to do the next 6 columns.
    There is an error run from your second post. I believe that you have left out "End If".
    Cheers

    By the way, I cannot find a button to say this thread is "Solved"
    Last edited by unley; 10-15-2019 at 05:43 PM. Reason: Solved

  5. #5
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,078

    Re: Update values on Target Ranges

    Glad to help & thanks for the feedback.
    You're quite right I did miss the "End If" line.

    To mark a thread as solved, click on the Thread tools button above post#1

+ 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] Worksheet Change Target Ranges
    By Redled89 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-03-2016, 08:43 PM
  2. [SOLVED] bonus for meeting target ranges
    By kiki burgh in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-10-2014, 06:13 AM
  3. [SOLVED] Multiple Target Intersect Ranges on Same Worksheet
    By Mistweaver in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-28-2013, 04:35 PM
  4. [SOLVED] Worksheet_Change(ByVal Target As Range) - set to only update when 3 target cells changed?
    By trillium in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-07-2012, 06:40 PM
  5. Replies: 0
    Last Post: 10-15-2012, 07:24 AM
  6. Replies: 1
    Last Post: 07-29-2010, 12:22 PM
  7. Ranges:Target in Worksheet_SelectionChange(ByVal Target As Range)
    By Kevin McCartney in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-15-2005, 09:06 AM

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