LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default Excel Formulars

Bob's code will do what you want but just keep in mind that you have no audit
trail to keep track of what is entered and no way to recover from an error in
data entry.


Gord Dibben MS Excel MVP

On Thu, 3 Jan 2008 21:31:12 -0000, "Bob Phillips" wrote:

Clear out column D first and add this code

Private Sub Worksheet_Change(ByVal Target As Range)
Const WS_RANGE As String = "B:B" '<== change to suit

On Error GoTo ws_exit
Application.EnableEvents = False

If Not Intersect(Target, Me.Range(WS_RANGE)) Is Nothing Then
With Target
.Offset(0, 2).Value = .Offset(0, 2).Value + .Value
End With
End If

ws_exit:
Application.EnableEvents = True
End Sub

'This is worksheet event code, which means that it needs to be
'placed in the appropriate worksheet code module, not a standard
'code module. To do this, right-click on the sheet tab, select
'the View Code option from the menu, and paste the code in.


 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Putting two formulars together in excel Linda Excel Discussion (Misc queries) 3 December 24th 07 02:53 PM
Need help calculating formulars tmac Excel Worksheet Functions 3 April 27th 06 07:06 PM
formulars jnf Excel Worksheet Functions 3 March 21st 06 11:27 AM
need help with formulars greenfrog Excel Discussion (Misc queries) 2 January 19th 06 07:56 PM
Formulars med211 Excel Worksheet Functions 1 January 25th 05 02:34 PM


All times are GMT +1. The time now is 07:32 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"