Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 16
Default How many times this file edited

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
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default How many times this file edited

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"
--
Gary''s Student - gsnu200775


"Prem Soni" wrote:

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

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 16
Default How many times this file edited

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


"Gary''s Student" wrote:

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"
--
Gary''s Student - gsnu200775


"Prem Soni" wrote:

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

  #4   Report Post  
Posted to microsoft.public.excel.programming
Les Les is offline
external usenet poster
 
Posts: 240
Default How many times this file edited

Hello Prem, you just change the number in the cell A1 to zero (0)
--
Les


"Prem Soni" wrote:

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


"Gary''s Student" wrote:

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"
--
Gary''s Student - gsnu200775


"Prem Soni" wrote:

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

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 16
Default How many times this file edited

Its working !

Thanks Les

"Les" wrote:

Hello Prem, you just change the number in the cell A1 to zero (0)
--
Les


"Prem Soni" wrote:

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


"Gary''s Student" wrote:

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"
--
Gary''s Student - gsnu200775


"Prem Soni" wrote:

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

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Does a file know how long it was edited or changed (Excel) Lauralalulu Excel Discussion (Misc queries) 1 March 3rd 06 07:05 PM
saving the last user who edited the file kman Excel Discussion (Misc queries) 1 February 23rd 06 08:20 AM
Excel not detecting that a file is currently being edited cds_tech Excel Discussion (Misc queries) 1 June 27th 05 09:06 PM
swf flash file embedded in html file which is edited in excel.. he I Believe Excel Discussion (Misc queries) 0 June 16th 05 10:06 PM
how to merge 2 different versions of same file edited on differen. justinfisher Excel Discussion (Misc queries) 0 January 21st 05 08:49 PM


All times are GMT +1. The time now is 02:14 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"