#1   Report Post  
Posted to microsoft.public.excel.programming
Val Val is offline
external usenet poster
 
Posts: 32
Default VB codes

How do you update/append/delete records in various files automatically based
on the entry into the Summary file.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default VB codes

Your question is rather vague, but the core of the answer is to use
the Change event to execute the appropriate code when a value on the
Summary sheet is changed. Right-click on the sheet tab of your Summary
sheet and choose View Code. In the code module that opens up, enter

Private Sub Worksheet_Change(ByVal Target As Range)

If Target.Cells.Count 1 Then
Exit Sub
End If
If Not Application.Intersect(Range("A1:A10"), Target) Is Nothing Then
' your code here
End If

End Sub

This code will be automatically exectued when a value on the worksheet
is changed. The code test whether the cell that was changed (Target)
is within the range A1:A10 and if so then executes whatever you put in
the line ' your code here.

The Change event is triggered when a cell's value changes as the
result of the user typing in a cell or as the result of other VBA code
modifying the value, but not if the change is simply the result of a
calculation.

Cordially,
Chip Pearson
Microsoft Most Valuable Professional,
Excel, 1998 - 2010
Pearson Software Consulting, LLC
www.cpearson.com





On Tue, 18 May 2010 09:36:14 -0700, Val
wrote:

How do you update/append/delete records in various files automatically based
on the entry into the Summary file.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,565
Default VB codes

See if Ron's page helps:

http://www.rondebruin.nl/summary2.htm


"Val" wrote in message
...
How do you update/append/delete records in various files automatically
based
on the entry into the Summary file.



Reply
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
Two codes in one set. MAX Excel Programming 1 May 1st 10 06:04 PM
VBA codes Emdad Excel Discussion (Misc queries) 4 July 3rd 08 03:18 PM
Need help with codes please Andrew Taylor Excel Programming 0 January 2nd 07 06:16 PM
Help with codes please!! Nick TKA Excel Discussion (Misc queries) 0 April 28th 06 12:47 PM
Am I asking to much from vb codes? Mr. G. Excel Worksheet Functions 0 July 14th 05 10:36 PM


All times are GMT +1. The time now is 11:21 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"