VBA Code to Track Status Changes to a Separate Sheet

dlealb

New Member
Joined
Apr 9, 2015
Messages
14
Hi All,

We are seeking assistance in creating a VBA Code to track Status Changes from Cell Range A3:A1000 - G3:G1000 this is coming from Sheet Name "Status Changes" and be tracked to a separate Sheet called "Status Update Tracker" and will display a value in Column H3 WB (Our week starts every Sunday) Or we could just use =$I3-WEEKDAY($I3,1)+7 There will be dates added in Column I3
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
.
I don't understand this portion of your request :

"will display a value in Column H3 WB (Our week starts every Sunday) Or we could just use =$I3-WEEKDAY($I3,1)+7 There will be dates added in Column I3"
 
Upvote 0
.
I don't understand this portion of your request :

"will display a value in Column H3 WB (Our week starts every Sunday) Or we could just use =$I3-WEEKDAY($I3,1)+7 There will be dates added in Column I3"

Never Mind that Sir ill just do that manually with the formula i previously mentioned =$I3-WEEKDAY($I3,1)+7
I just need the VBA Code to track the data entered in Cell Range A3:A1000 to G3:G1000 and be copied to a separate Sheet called "Status Update Tracker"
 
Upvote 0
.
Code:
Option Explicit


Public Sub Worksheet_Change(ByVal target As Range)
    Dim intersection As Range
    Set intersection = Intersect(target, Range("A3:A1000", "G3:G1000"))


    If Not intersection Is Nothing Then
       With Application
        .EnableEvents = False
        .Undo
        Sheets("Status Update Tracker").Cells(Rows.Count, 1).End(xlUp).Offset(1).Resize(, 4) = Array(Now(), Environ("UserName"), target.Address(0, 0), target.Value)
        .Undo
        Sheets("Status Update Tracker").Cells(Rows.Count, 1).End(xlUp).Offset(, 4) = target.Value
        .EnableEvents = True
    End With
    End If
End Sub


Download workbook : https://www.amazon.com/clouddrive/share/GvOg08HsGjLavdjTiyV2nmIR7Xgatt9WtE39Ayojxck
 
Upvote 0

Forum statistics

Threads
1,214,653
Messages
6,120,756
Members
448,990
Latest member
Buzzlightyear

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