+ Reply to Thread
Results 1 to 8 of 8

Problem with shared network workbook

  1. #1
    Forum Contributor
    Join Date
    02-05-2008
    Posts
    116

    Problem with shared network workbook

    Hello everyone

    I have a dilema, I have just modified a workbook for multiple network users, from the link below. I have almost come to the finish and testing it on the server, when a problem occured with sharing the file.

    Basically ive tested it pre shared, then shared the wookbook and it runs an error, its a run time error 1004, and it sez " method project of object_worksheet failed

    Has anyone any ideas as to what the prolem could be please??

    Many Thanks Denzil

    http://www.excelforum.com/excel-prog...ord-login.html

  2. #2
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Smile

    Good afternoon Denzil

    Difficult to say without seeing your file, but ...

    Just had a quick scope of the thread you posted and it seems that you are using Excel's built in protection. If you are attempting to apply and unapply Excel's protection programmatically through a shared workbook, then you'll have to think up an alternative - it's not allowed.

    Copy the below and paste it into Excel's help search page :
    Features that are unavailable in shared workbooks
    for a whole list of features / feeble workarounds that come into play with shared workbooks.

    HTH

    DominicB
    Please familiarise yourself with the rules before posting. You can find them here.

  3. #3
    Forum Contributor
    Join Date
    02-05-2008
    Posts
    116
    hello dominic

    Thanks for your reply its much appreciated!! Sorry Ive took so long, work has been crazy today

    Can you think of any ways around the problem? Im kinda in to deep at the mo!

    Many Thanks

    Denzil

  4. #4
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Smile

    Hi Denzil
    Quote Originally Posted by Denzil View Post
    Can you think of any ways around the problem? Im kinda in to deep at the mo!
    No workarounds. Unfortunately it's an Excel thing.
    You're either going to have to live without the protection, or the shared functionality of the workbook.

    HTH

    DominicB

  5. #5
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Smile

    Hi Denzil

    Actually you might be able to leave the protection off and code something into the worksheet change event that looks at the protection property of each cell, and if the cell should be protected, then the user is prevented from changing the contents?

    Just a thought.

    HTH

    DominicB

  6. #6
    Forum Contributor
    Join Date
    02-05-2008
    Posts
    116
    Hello Dominic

    Is there any chance you could have a look at my workbook please, to see if you can have any joy with it, as I explained before, I kind of fumbled my way to this point, taking bits and bobs from stuff on this site.
    Below is the Link to the complete document.

    The administrator user name is jamie, and the password is joshua

    http://www.humyo.com/6559135-196912777

    Many Thanks

    Denzil

  7. #7
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Smile

    Hi Denzil

    OK, I've had a look at your file, but it will take me longer to integrate this sort of thing into your file as you know it better than me, so I'll give you the code.

    Have a look at the attached file.
    I clicked on the top left of the spreadsheet area to highlight all cells and pressed Ctrl + 1, Protection and unlocked them all. I then locked all the cells shaded light blue. You will now find that protection is switched off and you can't change the shaded cells because of the event procedures I have (see the code behind Sheet 1).

    For development purposes if you want to edit the shaded cells, go to the VBE (Alt + F11) and press Ctrl + g to open the "immediate window" - this is where commands are entered and executed immediately.
    To "unprotect" sheet type
    application.enableevents=false <enter>
    to "protect" sheet type
    application.enableevents=true <enter>.

    HTH

    DominicB
    Attached Files Attached Files

  8. #8
    Forum Contributor
    Join Date
    02-05-2008
    Posts
    116

    Thumbs up

    Hi Dominic

    Thanks for the speedy reply!

    That looks good! Ill have a play and let you know how i get on

    Many thanks

    Denzil

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Need Truth on Shared workbook & VB
    By dimitrz in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 08-29-2008, 01:42 AM
  2. Protecting Shared workbook
    By dimitrz in forum Excel General
    Replies: 3
    Last Post: 08-27-2008, 10:21 AM
  3. Merging a shared workbook
    By tannert13 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-28-2007, 08:32 AM
  4. Shared Workbook - Saving Issues
    By nyeoman in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-16-2007, 11:21 PM
  5. Shared Workbook trouble
    By ScottBMW in forum Excel General
    Replies: 4
    Last Post: 12-15-2006, 10:11 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1