Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11
Default Excel Gurus-Please Help!

I have included a link to a workbook in which the master worksheet contains a
column with a list of tasks, and then has 2 columns for each month (one for
the due date and one for the date completed).
The following worksheets are for various departments. They each have
different tasks, but all of the tasks can be found on the master worksheet.
What I need is some way to have the €śdate completed€ť cells on the master
sheet automatically entered once that task has been completed on all of the
worksheets that contain that task.
I inherited this workbook that is used to track the compliance of various
departments throughout our site, so it is likely to have additions. It can
be reformatted as necessary.
THANKS SO MUCH!!

http://www.mediafire.com/?cvlymtxdjlg
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 229
Default Excel Gurus-Please Help!

I'm not guru (at least I won't claim that in these newsgroups) but
I'll give it a shot. This can get tricky, but VBA is probably the
route for you (unless someone has better solutions). Here's something
I put together that works, based on the current arrangement of the
worksheet. If a date is entered in the column whose second row reads
"Completed", it looks up the task name in the second column, finds
that row on the master worksheet, looks for the due date from the
department sub-sheet, and populates the completed date on the master.
You will probably want to do some more error checking; this snippet
only accounts for two condition: task not in master worksheet, or due
date doesn't match. Try it out and post back. It goes into the code
module of each department worksheet.

Private Sub Worksheet_Change(ByVal Target As Range)

If (Target.EntireColumn.Cells(2, 1).Value = "Completed") Then
Application.EnableEvents = False
Application.ScreenUpdating = False

Dim wshMaster As Excel.Worksheet
Dim strTaskName As String
Dim iMasterRow As Long
Dim iMasterColumn As Long

Dim dtDeadline As Date

strTaskName = Target.EntireRow.Cells(1, 2).Value
dtDeadline = Target.Offset(0, -1).Value

Set wshMaster = ThisWorkbook.Worksheets("Master")

With wshMaster
On Error Resume Next
iMasterRow = .Cells(1, 2).EntireColumn.Find(strTaskName).Row
On Error GoTo 0

If iMasterRow = 0 Then
Call MsgBox("Task not found in master worksheet!", _
vbOKOnly + vbExclamation, "Task not found")
GoTo exitCode
End If

On Error Resume Next
iMasterColumn = .Cells(iMasterRow,
1).EntireRow.Find(dtDeadline).Column
On Error GoTo 0

If iMasterColumn = 0 Then
Call MsgBox("Due date not found on master worksheet!", _
vbOKOnly + vbExclamation, "Due date not found")
GoTo exitCode
End If
.Cells(iMasterRow, iMasterColumn + 1).Value = Target.Value
End With
End If

exitCode:
Application.EnableEvents = True
Application.ScreenUpdating = True
End Sub



On Nov 1, 10:09 am, Ginny wrote:
I have included a link to a workbook in which the master worksheet contains a
column with a list of tasks, and then has 2 columns for each month (one for
the due date and one for the date completed).
The following worksheets are for various departments. They each have
different tasks, but all of the tasks can be found on the master worksheet.
What I need is some way to have the "date completed" cells on the master
sheet automatically entered once that task has been completed on all of the
worksheets that contain that task.
I inherited this workbook that is used to track the compliance of various
departments throughout our site, so it is likely to have additions. It can
be reformatted as necessary.
THANKS SO MUCH!!

http://www.mediafire.com/?cvlymtxdjlg



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
Excel GURUs help. (How to make program parse more than 1 forumla within a cell) Idz21 Excel Worksheet Functions 5 January 27th 06 08:50 PM
OK, a really tricky one now for Excel gurus! tim :/ Excel Discussion (Misc queries) 2 October 25th 05 12:55 PM
Chart Gurus--Please Help Conan Kelly Charts and Charting in Excel 1 September 16th 05 09:10 AM
Excel VBA Gurus needed Career Capital Excel Discussion (Misc queries) 0 September 9th 05 05:46 AM
For the Excel Query Gurus Andrew Excel Worksheet Functions 4 February 25th 05 06:14 AM


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