PC Review


Reply
Thread Tools Rate Thread

auto update of date and time whenever changes are made to a xcel s

 
 
saran
Guest
Posts: n/a
 
      23rd Jun 2008
Hi..
In the case of using auto update program for date and time thro vba editor,
the following error occurs
run time error 9.
This problem is more predominant in excel having more than one sheet.
Can u pl suggest what may b the problem.


 
Reply With Quote
 
 
 
 
sivak
Guest
Posts: n/a
 
      23rd Jun 2008
Try this code. Put this code in the ThisWorkbook object.

Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean)
Sheets("Sheet1").Range("A1").Value = " " & Now
End Sub

 
Reply With Quote
 
Gord Dibben
Guest
Posts: n/a
 
      24th Jun 2008
Post your code.


Gord Dibben MS Excel MVP

On Mon, 23 Jun 2008 08:10:25 -0700, saran <(E-Mail Removed)>
wrote:

> Hi..
>In the case of using auto update program for date and time thro vba editor,
>the following error occurs
> run time error 9.
>This problem is more predominant in excel having more than one sheet.
>Can u pl suggest what may b the problem.
>


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
auto update of date and time whenever changes are made to a xcel s saran Microsoft Excel Worksheet Functions 9 23rd Jun 2008 02:44 PM
Update auto checked but date and time do not update when I reopen =?Utf-8?B?bWdyYXk=?= Microsoft Word Document Management 1 2nd Feb 2007 03:46 AM
Date & Time auto update =?Utf-8?B?SmFja2llIEQ=?= Microsoft Word Document Management 5 7th Apr 2005 09:49 AM
Re: Auto Update Date And Time TF Microsoft Word New Users 0 31st Aug 2004 02:23 PM
Re: Auto Update Date And Time Suzanne S. Barnhill Microsoft Word New Users 0 31st Aug 2004 02:14 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:32 AM.