Excel for task tracking and workflow

BravoBravoAu

Board Regular
Joined
Nov 8, 2011
Messages
63
Office Version
  1. 2016
Platform
  1. Windows
Hi all - thanks for your time and expertise.

I'm considering using Excel to update the way my team provides monthly updates to the boss. I imagine having a shared workbook with a worksheet for each month of the year. Each row will refer to a task assigned to the ten staff in my work area and around ten columns containing relevant categories about the task (eg who its assigned to, what has happened, what you're planning next month) and then finally - the important bit - a column for the boss to write comments. The format in each worksheet will be the same, however will clearly be blank in future worksheets until that month rolls around. Preserving the point in time information is important so overwriting of cells (e.g. "progress this month" in column D) will not occur.

The part I'm struggling with is how do I add rigour to the integrity of the entries?! Can I show time/date that the comments are entered by the boss and by each staff member and for that matter, capture the user? In the below, that would be Columns D and F. I suppose I'm thinking similarly to how Word comments and track changes works?!

I'm happy to hear any thoughts about this!! Bright ideas and innovation alike is encouraged.

Task IDAssigned toDate assignedProgress this monthProgress next monthBoss oversight
AG1A.Brown1 Jan 18Almost completed. Review file and finish report
AG2A.Brown 12 Apr 18In abbeyance.Prioritise task and request information from stakeholders
BG1P.Green30 Jan 18Requested extensive information about stakeholder activitiesFollow up requests and compile when recieved.

<tbody>
</tbody>
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
Happy to use VBA?
You could use an event macro to add date and time. Try this:

1. right-click on sheet tab \ select View Code \ paste code below into window on right

Code:
Private Sub Worksheet_Change(ByVal Target As Range)
    If Target.Column = 6 Then
        Target.Offset(, 1).Resize(, 2) = Array(Date, Time)
    End If
End Sub

2. {ALT}{F11} takes you back to Excel


3. Now type anything anywhere in column F (column 6)

Date and time appear in columns G & H
(you may need to widen both columns)
Save the workbook as macro enabled
 
Last edited:
Upvote 0
Thanks @Yongle - this seems like a neat solution. I can replicate the same in the other column (reflecting the change in column number based on the reqyuired date and time cell).

Any ideas on attributing the change to a user?


****** id="cke_pastebin" style="position: absolute; top: 0px; width: 1px; height: 1px; overflow: hidden; left: -1000px;">
Task IDAssigned toDate assignedProgress this monthProgress next monthBoss oversight
AG1A.Brown1 Jan 18Almost completed.Review file and finish report

<tbody>
</tbody>
</body>
 
Upvote 0
Is this what you mean?
- user name added

Code:
Private Sub Worksheet_Change(ByVal Target As Range)

If Target.Row = 1 Then Exit Sub   'ignore changes in header row

    If Target.Column = 6 Then
        Target.Offset(, 1).Resize(, 3) = Array(Date, Time, Application.UserName)
    End If
End Sub
 
Last edited:
Upvote 0
@Yongle - if I wanted to assign this macro to a button (shape) and it to only apply the Date, Time, Application.UserName to selected cells, how could I do that?

Below is columns A,H-K

1Task IDProgress this monthProgress [date]Progress [time]Progress [user]
2AG1Almost complete.
3AG2In abbeyance.
4BG1Requested extensive information about stakeholder activities.

<tbody>
</tbody>

The example of what I'm after, is if I wanted to apply the Date, Time, Application.UserName for only rows 2 and 4, I'm looking for a solution where I:
  • select those two cells where progress is recorded (H2 and H4)
  • press the macro button (in the header of H1 for instance)
  • and as a result, apply the Date, Time, Application.UserName in cells I2:K2 and I4:K4

Appreciate any help you can provide!!
 
Upvote 0
Would it not be easier for the user to simply double click in he row after details added?

- insert code in sheet module as before
- to test double-click any cell in I,J or K (or beyond)
- example control included that there must be a value in columns A and I

Code:
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
    If Target.Column < 9 Then Exit Sub

    If Range("A" & Target.Row) > "" And Range("H" & Target.Row) > "" Then Range("I" & Target.Row).Resize(, 3) = Array(Date, Time, Application.UserName)
    Cancel = True
    
End Sub
 
Upvote 0
Your idea of a button to add details all at once but only to some rows :confused:
- which general rule do give VBA so that some rows are excluded?
- my concern is that free text is difficult to control

Is "in abbeyance" the only condition for exclusion?
 
Upvote 0
Thanks again @Yongle, your first solution is still workable, but I'm exploring if this may be more suitable.

I'm not considering exlusion, rather inclusion by selecting the relevant cell. If there was progress recorded in cells H2 and H4 (as shown above) and I selected then with a left mouse click, then pressed the macro button, that would trigger the Date, Time, Application.UserName in I2-K2 and I4-K4. Does that help?
 
Upvote 0
Alternatively, using the code you suggested (below), if I was to use this from cells I, P and T (Date, Time, Application.UserName to I=J-L, P=Q-S, T=U-W), what changes would I need to make?


Code:
 [COLOR=#333333]Private Sub Worksheet_Change(ByVal Target As Range)[/COLOR]
If Target.Row = 1 Then Exit Sub   'ignore changes in header row

    If Target.Column = 6 Then
        Target.Offset(, 1).Resize(, 3) = Array(Date, Time, Application.UserName)

    End If 

[COLOR=#333333]End Sub[/COLOR]
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,822
Messages
6,121,770
Members
449,049
Latest member
greyangel23

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top