How many times this file edited

  • Thread starter Thread starter Prem Soni
  • Start date Start date
P

Prem Soni

Hi All,

Can anybody tell me is there any way through that i can set a formula or
programming in excel file to get it know that "how many times this file
edited" and when it last modified?

Pls help me out if someone knows...

Prem Soni
 
Put the following in the workbook code area:

Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean)
Sheets("Sheet1").Activate
Set r1 = Range("A1")
Set r2 = Range("A2")
r1.Value = r1.Value + 1
r2.Value = Date
End Sub

I assume that "edited" means "changed and saved"
 
Hi Gary!

Thanks its working.

Now pls let me know this also how can i set this "How many Times this file
saved or modified" to 0 (zero)
I mean can i reset this value. I think u got what i want?

Prem Soni
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top