PC Review


Reply
Thread Tools Rate Thread

Check Out / Check In

 
 
PatK
Guest
Posts: n/a
 
      12th Nov 2008
Is there a way to write code that would automatically check out a document
upon opening (assuming it is not already, and of so, Warn), and then check it
in upon close?

And where would this code have to go? It would not be in a sheet, but
somewhere where code can be placed that executes upon open/close.

Ideas?

Patk
 
Reply With Quote
 
 
 
 
Mike H
Guest
Posts: n/a
 
      12th Nov 2008
you could use the open & close events.
Alt+F11 to open VB editor. Double click 'This workbook' and paste the 2
modules below in on the right.

Private Sub Workbook_Open()
'Check things
End Sub

Private Sub Workbook_BeforeClose(Cancel As Boolean)
'Check things again
End Sub


Mike

"PatK" wrote:

> Is there a way to write code that would automatically check out a document
> upon opening (assuming it is not already, and of so, Warn), and then check it
> in upon close?
>
> And where would this code have to go? It would not be in a sheet, but
> somewhere where code can be placed that executes upon open/close.
>
> Ideas?
>
> Patk

 
Reply With Quote
 
PatK
Guest
Posts: n/a
 
      12th Nov 2008
Thanks! Seems simple enough. Any idea on the code that goes in between? Is
that as simple (or even possible)?

thanks,
Patk

"Mike H" wrote:

> you could use the open & close events.
> Alt+F11 to open VB editor. Double click 'This workbook' and paste the 2
> modules below in on the right.
>
> Private Sub Workbook_Open()
> 'Check things
> End Sub
>
> Private Sub Workbook_BeforeClose(Cancel As Boolean)
> 'Check things again
> End Sub
>
>
> Mike
>
> "PatK" wrote:
>
> > Is there a way to write code that would automatically check out a document
> > upon opening (assuming it is not already, and of so, Warn), and then check it
> > in upon close?
> >
> > And where would this code have to go? It would not be in a sheet, but
> > somewhere where code can be placed that executes upon open/close.
> >
> > Ideas?
> >
> > Patk

 
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
Spell check -- text marked skip spelling and grammar check =?Utf-8?B?RGF2aWQgQS4=?= Microsoft Word Document Management 8 9th Aug 2008 11:47 PM
Asp.net Treeview Clientscript - Auto Check Child Notes After Check Parent Node Sylvie Microsoft C# .NET 1 9th Oct 2007 02:25 PM
Treeview Clientscript - Auto Check Child Notes After Check Parent Node Sylvie Microsoft ASP .NET 1 9th Oct 2007 02:25 PM
In outlook get message "Spell check cannot check items...try agai =?Utf-8?B?am1yYW5jaG1hbg==?= Microsoft Outlook Discussion 1 28th Sep 2006 10:26 PM
Xp:Check Disk:Tools:Check Now:Both Options:reboot countdown does not complete? RAS Windows XP General 3 1st Feb 2005 06:23 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:39 AM.