Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 343
Default Populate worksheets fro a Master List

I have a Worksheet which has a master list of all employees. There are 3
columns of information (First Name, Last Name @ Department). I want to
create a worksheet for each of the 3 departments and have each worksheet
populated with the information for that department only. The reason I
created the Master List is that people can move between the departments so I
was hoping to update the Master List and then have the Department
worksheets automatically update.

The 3 departments are PT, FR and OF. Is there any code (say an On Change
event) which would look at the Department Code for each line on the Master
List and Copy the information (First Name, Last Name and Department) to the
appropriate worksheet (worksheets are named Master, PT, FR and OF).

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 44
Default Populate worksheets fro a Master List

"Patrick C. Simonds" wrote in message
...
I have a Worksheet which has a master list of all employees. There are 3
columns of information (First Name, Last Name @ Department). I want to
create a worksheet for each of the 3 departments and have each worksheet
populated with the information for that department only. The reason I
created the Master List is that people can move between the departments so
I was hoping to update the Master List and then have the Department
worksheets automatically update.

The 3 departments are PT, FR and OF. Is there any code (say an On Change
event) which would look at the Department Code for each line on the Master
List and Copy the information (First Name, Last Name and Department) to
the appropriate worksheet (worksheets are named Master, PT, FR and OF).


Right click on the tab for the sheet with the master list, select view code
from the menu and write something like this (it will run the code after the
if statement if any cell in the stated range changes):

Private Sub Worksheet_Change(ByVal Target As Excel.Range)
On Error GoTo ws_exit:
If Application.Intersect(Target, Range("A2:C100")) Is Nothing Then Exit
Sub

some code to copy the 3 columns to other sheets ....
......
.....

ws_exit:
code to handle any errors ....
End Sub



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
Altering Master list / maintain values in worksheets Michael K Excel Discussion (Misc queries) 0 February 19th 08 06:09 PM
Break master list up into lists in separate worksheets Prashant Rao Excel Discussion (Misc queries) 0 September 20th 07 08:28 PM
how do I generate lists in worksheets based on a master list works Furlong Excel Worksheet Functions 10 July 15th 07 09:36 AM
Populate a spreadsheet with multiple entries from a master jdall Excel Discussion (Misc queries) 1 April 6th 06 12:31 AM
Populate worksheets based on a master sheet brownsatan Excel Worksheet Functions 1 February 6th 06 09:34 PM


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