PC Review


Reply
Thread Tools Rate Thread

a1+a2=a3 How can I change a2,keep old a2 value & increase a3

 
 
=?Utf-8?B?d293?=
Guest
Posts: n/a
 
      15th Sep 2007
I want to use less columns as possible. I want others to be able to change
one column while previous values are added to increase a3
 
Reply With Quote
 
 
 
 
=?Utf-8?B?R2FyeScncyBTdHVkZW50?=
Guest
Posts: n/a
 
      16th Sep 2007
This example uses only two cells: A1 & A2

Insert the following code in the wroksheet code area:

Private Sub Worksheet_Change(ByVal Target As Range)
If Intersect(Target, Range("A1")) Is Nothing Then Exit Sub
Application.EnableEvents = False
Range("A2").Value = Range("A2").Value + Range("A1").Value
Application.EnableEvents = True
End Sub


Whenever a value is entered in A1, its added into A2
--
Gary''s Student - gsnu200745


"wow" wrote:

> I want to use less columns as possible. I want others to be able to change
> one column while previous values are added to increase a3

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Change font or increase size of spellcheck box Eric Microsoft Word Document Management 2 28th Nov 2009 06:30 PM
Increase, decrease or no change Orangecat53 Microsoft Access VBA Modules 1 11th Jan 2008 02:51 PM
on click change cells color and increase a number.. =?Utf-8?B?RGFuaWVs?= Microsoft Excel Programming 2 19th Oct 2005 12:35 AM
How do I change - increase maximum limit of the row height (409 p. =?Utf-8?B?TWFyZWs=?= Microsoft Excel Misc 0 1st Mar 2005 02:27 PM
Value Increase/Decrease/No Change Michael Microsoft Excel Worksheet Functions 1 5th Nov 2004 11:32 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:30 PM.