Tracking days and values

khalil

Board Regular
Joined
Jun 2, 2011
Messages
100
hi all

please help,

cell A1 always has a number changes once every day ,( only Cell A1)

i want to track that number with that date, i come back to it any time,

thanks
:)
 
For testing purposes you can test the changes now and see if the value and date are pasting to the "Cancellations" sheets col A/B

There seems to still be a little misunderstanding on my part possibly. You stated earlier you want the list stored on another sheet, but you didn't mention anything about the value from N8 being on the same sheet. What are we to do with this value on N8? I'm sorry but I am missing something.

Code:
Private Sub Worksheet_Change(ByVal Target As Range)
    Dim oldvalue    As Long
    Dim Rng         As Range
    Dim LR          As Long
    
    oldvalue = Range("N8")
    Set Rng = Target.Parent.Range("N8")
    
    If Target.Count > 1 Then Exit Sub
    If Intersect(Target, Rng) Is Nothing Then Exit Sub
    
    With Sheets("Cancellations")
        LR = .Range("A" & .Rows.Count).End(xlUp).Row + 1
        .Range("A" & LR) = oldvalue
        .Range("B" & LR) = Date
    End With
    
End Sub
 
Upvote 0

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
consider N8 is the cell were the value will be in, forget cell A1

and N8 is in the same sheet with column A/B were we are going to store

i did copy past the code, no results ! may be we need to wait for the date to change !

you are a good man
after solving this i have another challenging thread at least for me...I am still new in these threads.......it is exiting

:)
 
Upvote 0
You don't have to wait for the date to change to test.

Paste over the old value and see what results you get.
 
Upvote 0
it works , thanks, since it is a test what shall i do now?


my other thread

Cell A1 D1 E1 contains formulas

they will give me results after filling other cells from the same row,
after getting results in those cells i want the formulas in them jumps automatically to
A2 D2 E2

and so on

i don't want to copy paste the formulas the old way...


thanks
 
Upvote 0
Since it is just a test then delete out what's in col A/B and get ready for the real thing.

I see in your other post Smitty is helping you who miles ahead of me pertaining to anything in Excel.

Please keep your questions to that thread.
 
Upvote 0

Forum statistics

Threads
1,225,156
Messages
6,183,224
Members
453,152
Latest member
ChrisMd

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