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

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
.
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,224,820
Messages
6,181,157
Members
453,021
Latest member
Justyna P

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