Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / August 2007

Tip: Looking for answers? Try searching our database.

Enter info in one sheet, auto enter in another based on one field

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
The BusyHighLighter - 01 Aug 2007 20:24 GMT
Hi, I'm new to excel and need very step by step basic directions :)
on how to do the following:

I have a database of names/addresses and whether or not the company is
private.
1) I want to keep a main sheet of ALL information entered
2) I want the data from one row to automatically enter into the other
appropriate sheet as I type it in

For example (and this is simplified): USDA 123 Washington Government
I would want this on the main sheet and to enter itself on the GOVERNMENT
sheet

thanks in advance for any help
Smitty - 01 Aug 2007 22:54 GMT
Sure,

You can use an Worksheet_Change event.  You didn't mention any specific
ranges, so I'll just give an example:

Private Sub Worksheet_Change(ByVal Target As Range)
   '   Code goes in the Worksheet specific module
   Dim rng As Range
       '   Set Target Range
       Set rng = Range("D:D")
            '   Only look at single cell changes
           If Target.Count > 1 Then Exit Sub
           '   Only look at that range
           If Intersect(Target, rng) Is Nothing Then Exit Sub
           '   Action if Condition(s) are met
           Target.EntireRow.Copy Sheets(Target.Text).Cells(Rows.Count,
"A").End(xlUp).Offset(1)
End Sub

Where column D is the relevant sheet name is selected.

Hope that helps,

Smitty

> Hi, I'm new to excel and need very step by step basic directions :)
> on how to do the following:
[quoted text clipped - 10 lines]
>
> thanks in advance for any help
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.