Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 96
Default Check Out / Check In

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
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,501
Default Check Out / Check In

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

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 96
Default Check Out / Check In

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
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
Copy and move check box (check boxes) with new cell link? Marty Excel Worksheet Functions 1 January 20th 10 07:43 PM
Loop through column(s) to check values, perform action based on check ward376 Excel Programming 4 November 6th 07 03:21 PM
Increase size of a Forms Check Box (click on to enter check mark) 718Satoshi Excel Discussion (Misc queries) 0 August 17th 07 01:52 AM
Check if Conditional Format is True or False / Check cell Color Kevin McCartney Excel Worksheet Functions 5 June 29th 07 11:12 AM
Enable check box in protected sheet + group check boxes Dexxterr Excel Discussion (Misc queries) 4 August 2nd 06 12:00 PM


All times are GMT +1. The time now is 10:58 PM.

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"