PC Review


Reply
Thread Tools Rate Thread

Date sensitive workbook.

 
 
eighthman11
Guest
Posts: n/a
 
      26th Mar 2008
Hello everyone:
I have a spreadsheet which needs to be refreshed with current data
periodically. This spreadsheet is used by people at remote sites that
are not connected to our companies data. So I email them the raw data
and they import this data to the spreadsheet through VB code.

Now for the question. Is there a way I can create a timed event that
will force the user to refresh the data and if they do not in the time
period it makes the spreadsheet disabled. I would like for them to
refresh the data every three months. Would also like to give them a
warning message that they need to do a refresh before the spreadsheet
actually becomes disabled.

Is this possible are a pretty crazy idea? Any help and or examples
appreciated. Thanks Ray: ps using Excel 2000 on XP

 
Reply With Quote
 
 
 
 
JLGWhiz
Guest
Posts: n/a
 
      26th Mar 2008
There might be a better way, but you could use the Workbook_Open event to
check the current date and if it is three months from the issue date then
flash a message box.

Private Sub Workbook_Open()
IssueDate = 1/31/2008
If Date >= IssueDate + 90 Then
MsgBox "Refresh Is Due!", , "Advisory"
End If
End Sub

If will check each time the file is opened but will not show the message box
until the 90 day period is reached or exceeded.

"eighthman11" wrote:

> Hello everyone:
> I have a spreadsheet which needs to be refreshed with current data
> periodically. This spreadsheet is used by people at remote sites that
> are not connected to our companies data. So I email them the raw data
> and they import this data to the spreadsheet through VB code.
>
> Now for the question. Is there a way I can create a timed event that
> will force the user to refresh the data and if they do not in the time
> period it makes the spreadsheet disabled. I would like for them to
> refresh the data every three months. Would also like to give them a
> warning message that they need to do a refresh before the spreadsheet
> actually becomes disabled.
>
> Is this possible are a pretty crazy idea? Any help and or examples
> appreciated. Thanks Ray: ps using Excel 2000 on XP
>
>

 
Reply With Quote
 
Dave Peterson
Guest
Posts: n/a
 
      26th Mar 2008
I bet you wanted IssueDate to be a date:

Private Sub Workbook_Open()
Dim IssueDate as Date
IssueDate = dateserial(2008,1,31)
If Date >= IssueDate + 90 Then
MsgBox "Refresh Is Due!", , "Advisory"
End If
End Sub

JLGWhiz wrote:
>
> There might be a better way, but you could use the Workbook_Open event to
> check the current date and if it is three months from the issue date then
> flash a message box.
>
> Private Sub Workbook_Open()
> IssueDate = 1/31/2008
> If Date >= IssueDate + 90 Then
> MsgBox "Refresh Is Due!", , "Advisory"
> End If
> End Sub
>
> If will check each time the file is opened but will not show the message box
> until the 90 day period is reached or exceeded.
>
> "eighthman11" wrote:
>
> > Hello everyone:
> > I have a spreadsheet which needs to be refreshed with current data
> > periodically. This spreadsheet is used by people at remote sites that
> > are not connected to our companies data. So I email them the raw data
> > and they import this data to the spreadsheet through VB code.
> >
> > Now for the question. Is there a way I can create a timed event that
> > will force the user to refresh the data and if they do not in the time
> > period it makes the spreadsheet disabled. I would like for them to
> > refresh the data every three months. Would also like to give them a
> > warning message that they need to do a refresh before the spreadsheet
> > actually becomes disabled.
> >
> > Is this possible are a pretty crazy idea? Any help and or examples
> > appreciated. Thanks Ray: ps using Excel 2000 on XP
> >
> >


--

Dave Peterson
 
Reply With Quote
 
JLGWhiz
Guest
Posts: n/a
 
      26th Mar 2008
Yeah, I need to let my brain catch up with the logic.

"Dave Peterson" wrote:

> I bet you wanted IssueDate to be a date:
>
> Private Sub Workbook_Open()
> Dim IssueDate as Date
> IssueDate = dateserial(2008,1,31)
> If Date >= IssueDate + 90 Then
> MsgBox "Refresh Is Due!", , "Advisory"
> End If
> End Sub
>
> JLGWhiz wrote:
> >
> > There might be a better way, but you could use the Workbook_Open event to
> > check the current date and if it is three months from the issue date then
> > flash a message box.
> >
> > Private Sub Workbook_Open()
> > IssueDate = 1/31/2008
> > If Date >= IssueDate + 90 Then
> > MsgBox "Refresh Is Due!", , "Advisory"
> > End If
> > End Sub
> >
> > If will check each time the file is opened but will not show the message box
> > until the 90 day period is reached or exceeded.
> >
> > "eighthman11" wrote:
> >
> > > Hello everyone:
> > > I have a spreadsheet which needs to be refreshed with current data
> > > periodically. This spreadsheet is used by people at remote sites that
> > > are not connected to our companies data. So I email them the raw data
> > > and they import this data to the spreadsheet through VB code.
> > >
> > > Now for the question. Is there a way I can create a timed event that
> > > will force the user to refresh the data and if they do not in the time
> > > period it makes the spreadsheet disabled. I would like for them to
> > > refresh the data every three months. Would also like to give them a
> > > warning message that they need to do a refresh before the spreadsheet
> > > actually becomes disabled.
> > >
> > > Is this possible are a pretty crazy idea? Any help and or examples
> > > appreciated. Thanks Ray: ps using Excel 2000 on XP
> > >
> > >

>
> --
>
> Dave Peterson
>

 
Reply With Quote
 
eighthman11
Guest
Posts: n/a
 
      27th Mar 2008
On Mar 26, 4:33*pm, JLGWhiz <JLGW...@discussions.microsoft.com> wrote:
> Yeah, I need to let my brain catch up with the logic.
>
>
>
> "Dave Peterson" wrote:
> > I bet you wanted IssueDate to be a date:

>
> > Private Sub Workbook_Open()
> > * *Dim IssueDate as Date
> > * *IssueDate = dateserial(2008,1,31)
> > * *If Date >= IssueDate + 90 Then
> > * * * MsgBox "Refresh Is Due!", , "Advisory"
> > * *End If
> > End Sub

>
> > JLGWhiz wrote:

>
> > > There might be a better way, but you could use the Workbook_Open eventto
> > > check the current date and if it is three months from the issue date then
> > > flash a message box.

>
> > > Private Sub Workbook_Open()
> > > * *IssueDate = 1/31/2008
> > > * *If Date >= IssueDate + 90 Then
> > > * * * MsgBox "Refresh Is Due!", , "Advisory"
> > > * *End If
> > > End Sub

>
> > > If will check each time the file is opened but will not show the message box
> > > until the 90 day period is reached or exceeded.

>
> > > "eighthman11" wrote:

>
> > > > Hello everyone:
> > > > I have a spreadsheet which needs to be refreshed with current data
> > > > periodically. *This spreadsheet is used by people at remote sites that
> > > > are not connected to our companies data. *So I email them the raw data
> > > > and they import this data to the spreadsheet through VB code.

>
> > > > Now for the question. *Is there a way I can create a timed event that
> > > > will force the user to refresh the data and if they do not in the time
> > > > period it makes the spreadsheet disabled. *I would like for them to
> > > > refresh the data every three months. *Would also like to give thema
> > > > warning message that they need to do a refresh before the spreadsheet
> > > > actually becomes disabled.

>
> > > > Is this possible are a pretty crazy idea? *Any help and or examples
> > > > appreciated. * Thanks Ray: ps using Excel 2000 on XP

>
> > --

>
> > Dave Peterson- Hide quoted text -

>
> - Show quoted text -


Thanks for the help. Based on your suggestions I got it working just
the way I want. One minor problem.
If I get a user who is savy enough to change the system date on the
computer they could bypass having
to update the spreadsheet. Any Ideas?
 
Reply With Quote
 
Dave Peterson
Guest
Posts: n/a
 
      27th Mar 2008
The same person will find a way to avoid the autorun macros.

I think you're fighting a losing battle.

But if you're a glutton for punishment and the user is connected to the
internet, you could search google for retrieving the date from a trusted source.


eighthman11 wrote:
>
> On Mar 26, 4:33 pm, JLGWhiz <JLGW...@discussions.microsoft.com> wrote:
> > Yeah, I need to let my brain catch up with the logic.
> >
> >
> >
> > "Dave Peterson" wrote:
> > > I bet you wanted IssueDate to be a date:

> >
> > > Private Sub Workbook_Open()
> > > Dim IssueDate as Date
> > > IssueDate = dateserial(2008,1,31)
> > > If Date >= IssueDate + 90 Then
> > > MsgBox "Refresh Is Due!", , "Advisory"
> > > End If
> > > End Sub

> >
> > > JLGWhiz wrote:

> >
> > > > There might be a better way, but you could use the Workbook_Open event to
> > > > check the current date and if it is three months from the issue date then
> > > > flash a message box.

> >
> > > > Private Sub Workbook_Open()
> > > > IssueDate = 1/31/2008
> > > > If Date >= IssueDate + 90 Then
> > > > MsgBox "Refresh Is Due!", , "Advisory"
> > > > End If
> > > > End Sub

> >
> > > > If will check each time the file is opened but will not show the message box
> > > > until the 90 day period is reached or exceeded.

> >
> > > > "eighthman11" wrote:

> >
> > > > > Hello everyone:
> > > > > I have a spreadsheet which needs to be refreshed with current data
> > > > > periodically. This spreadsheet is used by people at remote sites that
> > > > > are not connected to our companies data. So I email them the raw data
> > > > > and they import this data to the spreadsheet through VB code.

> >
> > > > > Now for the question. Is there a way I can create a timed event that
> > > > > will force the user to refresh the data and if they do not in the time
> > > > > period it makes the spreadsheet disabled. I would like for them to
> > > > > refresh the data every three months. Would also like to give them a
> > > > > warning message that they need to do a refresh before the spreadsheet
> > > > > actually becomes disabled.

> >
> > > > > Is this possible are a pretty crazy idea? Any help and or examples
> > > > > appreciated. Thanks Ray: ps using Excel 2000 on XP

> >
> > > --

> >
> > > Dave Peterson- Hide quoted text -

> >
> > - Show quoted text -

>
> Thanks for the help. Based on your suggestions I got it working just
> the way I want. One minor problem.
> If I get a user who is savy enough to change the system date on the
> computer they could bypass having
> to update the spreadsheet. Any Ideas?


--

Dave Peterson
 
Reply With Quote
 
eighthman11
Guest
Posts: n/a
 
      27th Mar 2008
On Mar 27, 10:29*am, Dave Peterson <peter...@verizonXSPAM.net> wrote:
> The same person will find a way to avoid the autorun macros.
>
> I think you're fighting a losing battle.
>
> But if you're a glutton for punishment and the user is connected to the
> internet, you could search google for retrieving the date from a trusted source.
>
>
>
>
>
> eighthman11wrote:
>
> > On Mar 26, 4:33 pm, JLGWhiz <JLGW...@discussions.microsoft.com> wrote:
> > > Yeah, I need to let my brain catch up with the logic.

>
> > > "Dave Peterson" wrote:
> > > > I bet you wanted IssueDate to be a date:

>
> > > > Private Sub Workbook_Open()
> > > > * *Dim IssueDate as Date
> > > > * *IssueDate = dateserial(2008,1,31)
> > > > * *If Date >= IssueDate + 90 Then
> > > > * * * MsgBox "Refresh Is Due!", , "Advisory"
> > > > * *End If
> > > > End Sub

>
> > > > JLGWhiz wrote:

>
> > > > > There might be a better way, but you could use the Workbook_Open event to
> > > > > check the current date and if it is three months from the issue date then
> > > > > flash a message box.

>
> > > > > Private Sub Workbook_Open()
> > > > > * *IssueDate = 1/31/2008
> > > > > * *If Date >= IssueDate + 90 Then
> > > > > * * * MsgBox "Refresh Is Due!", , "Advisory"
> > > > > * *End If
> > > > > End Sub

>
> > > > > If will check each time the file is opened but will not show the message box
> > > > > until the 90 day period is reached or exceeded.

>
> > > > > "eighthman11" wrote:

>
> > > > > > Hello everyone:
> > > > > > I have a spreadsheet which needs to be refreshed with current data
> > > > > > periodically. *This spreadsheet is used by people at remote sites that
> > > > > > are not connected to our companies data. *So I email them the raw data
> > > > > > and they import this data to the spreadsheet through VB code.

>
> > > > > > Now for the question. *Is there a way I can create a timed event that
> > > > > > will force the user to refresh the data and if they do not in the time
> > > > > > period it makes the spreadsheet disabled. *I would like for them to
> > > > > > refresh the data every three months. *Would also like to give them a
> > > > > > warning message that they need to do a refresh before the spreadsheet
> > > > > > actually becomes disabled.

>
> > > > > > Is this possible are a pretty crazy idea? *Any help and or examples
> > > > > > appreciated. * Thanks Ray: ps using Excel 2000 on XP

>
> > > > --

>
> > > > Dave Peterson- Hide quoted text -

>
> > > - Show quoted text -

>
> > Thanks for the help. *Based on your suggestions I got it working just
> > the way I want. *One minor problem.
> > If I get a user who is savy enough to change the system date on the
> > computer they could bypass having
> > to update the spreadsheet. *Any Ideas?

>
> --
>
> Dave Peterson- Hide quoted text -
>
> - Show quoted text -


Thanks Dave. I agree, you can only do so much. At some point the
user has to take some
responsibility that they are doing their job correctly. Once again
thanks for the help.
 
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
Tme Sensitive Date Calculation =?Utf-8?B?Um9zZQ==?= Microsoft Access Queries 1 23rd Apr 2007 01:37 AM
Custom views, filters sensitive, in a share workbook an protect sh =?Utf-8?B?QW5kcmUgRmVybmFuZGVz?= Microsoft Excel New Users 0 31st Oct 2005 09:36 PM
How to set up a date sensitive notification? =?Utf-8?B?SHlhdHQgR3V5?= Microsoft Excel Misc 1 22nd Jul 2005 08:19 PM
How to set up a date sensitive notification? =?Utf-8?B?SHlhdHQgR3V5?= Microsoft Excel Misc 1 22nd Jul 2005 08:00 PM
Date sensitive cells =?Utf-8?B?TWF0dGljYWNl?= Microsoft Excel Misc 2 28th Jun 2005 02:59 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:42 AM.