EXPERTISE:
I hope I'm not pushing my luck here, as this question may be out of the scope of this forum. In addition to Excel expertise, you'll probably need advanced Sharepoint expertise in order to help me.
BACKGROUND:
I am the SharePoint admin for our MOSS 2007 SP site. Due to the large number of users collaborating on a single Excel file, I implemented a site-wide mandatory Check-out / Check-in policy (version control) on all files. When a file is 'checked-out', the user immediately receives a pop-up dialog box. In the middle of the dialog box is a 'check box' followed by the option 'use my local drafts folder'. By default, this 'check box' contains a 'check mark'. However, this box MUST be 'unchecked' in order for the Excel file to retain the embedded file link to another single Excel source file. Leaving the box 'checked/ticked' changes the embedded source file link to the user's local HDD. This breaks the entire flow of information for the Excel workbook.
I've tried educating the users to remove the check mark via e-mail. I've placed a Warning Message with this same information when the user opens the Excel file with the 'checkbox' 'checked/ticked' anyways. Microsoft doesn't allow the default state of the 'check box' to be changed at the server level. It can only be implemented at the local user level within their Excel Options. So, I sent instructions to all the users on how to make the 'check box' 'unchecked' by default. However, they actually have to PERFORM the instructions in order for this to occur.
Guess what? I can't get 100% compliance! Duh! They 'forget'. So, I'm continually having to go in and relink Excel to the correct file path.
WHAT I'D LIKE TO DO:
(the bold text is the hardest part of this request)
I'd like to insert VBA code into the Excel ThisWorkbook module in a Workbook_Open sub that would intercept the 'state' of the SP 'checkbox' titled 'use my local drafts folder'. If it's unchecked, "all systems go!" You may edit the file. However, if the 'check box' is 'checked/ticked', I want to display a message explaining what they did wrong, instructions for correcting and the fact that they will not be allowed to continue to edit the file. When they click OK, the file will immediately close AND FORCE a discard of the 'checked-out' Excel file.
The message is obviously the easy part. Intercepting the 'checkbox' status may be the hardest part. Closing the file is easy. Forcing a discard of the 'checked-out' file may be the other hard part.
WHAT I NEED FROM YOU:
The VBA code for the 'intercept' and the 'forced discard'. Any takers?!
Any and all suggestions are welcomed. If I was dealing with robots this would be easy. Humans?! Whatya' gonna' do with 'em?!!! (rhetorical)
I hope I'm not pushing my luck here, as this question may be out of the scope of this forum. In addition to Excel expertise, you'll probably need advanced Sharepoint expertise in order to help me.
BACKGROUND:
I am the SharePoint admin for our MOSS 2007 SP site. Due to the large number of users collaborating on a single Excel file, I implemented a site-wide mandatory Check-out / Check-in policy (version control) on all files. When a file is 'checked-out', the user immediately receives a pop-up dialog box. In the middle of the dialog box is a 'check box' followed by the option 'use my local drafts folder'. By default, this 'check box' contains a 'check mark'. However, this box MUST be 'unchecked' in order for the Excel file to retain the embedded file link to another single Excel source file. Leaving the box 'checked/ticked' changes the embedded source file link to the user's local HDD. This breaks the entire flow of information for the Excel workbook.
I've tried educating the users to remove the check mark via e-mail. I've placed a Warning Message with this same information when the user opens the Excel file with the 'checkbox' 'checked/ticked' anyways. Microsoft doesn't allow the default state of the 'check box' to be changed at the server level. It can only be implemented at the local user level within their Excel Options. So, I sent instructions to all the users on how to make the 'check box' 'unchecked' by default. However, they actually have to PERFORM the instructions in order for this to occur.
Guess what? I can't get 100% compliance! Duh! They 'forget'. So, I'm continually having to go in and relink Excel to the correct file path.
WHAT I'D LIKE TO DO:
(the bold text is the hardest part of this request)
I'd like to insert VBA code into the Excel ThisWorkbook module in a Workbook_Open sub that would intercept the 'state' of the SP 'checkbox' titled 'use my local drafts folder'. If it's unchecked, "all systems go!" You may edit the file. However, if the 'check box' is 'checked/ticked', I want to display a message explaining what they did wrong, instructions for correcting and the fact that they will not be allowed to continue to edit the file. When they click OK, the file will immediately close AND FORCE a discard of the 'checked-out' Excel file.
The message is obviously the easy part. Intercepting the 'checkbox' status may be the hardest part. Closing the file is easy. Forcing a discard of the 'checked-out' file may be the other hard part.
WHAT I NEED FROM YOU:
The VBA code for the 'intercept' and the 'forced discard'. Any takers?!
Any and all suggestions are welcomed. If I was dealing with robots this would be easy. Humans?! Whatya' gonna' do with 'em?!!! (rhetorical)
Last edited: