+ Reply to Thread
Results 1 to 12 of 12

UserForm crashes excel if workbook is shared

  1. #1
    Registered User
    Join Date
    07-01-2011
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    89

    UserForm crashes excel if workbook is shared

    Hi All

    attached is my userform spreadsheet

    If I put this on a network folder, (which I have access to), then share the workbook, when I open it, excel crashes?

    If I dont share it, excel doesn't crash and the userform opens fine

    Only crashes when saved(shared) when I attempt to open the userform?

    I cant for the life of me figure out why? any ideas?

    Many thanks
    Attached Files Attached Files
    Last edited by techteam; 04-02-2012 at 09:28 AM.

  2. #2
    Valued Forum Contributor
    Join Date
    08-29-2011
    Location
    Mississauga, CANADA
    MS-Off Ver
    Excel 2010
    Posts
    503

    Re: UserForm crashes excel if workbook is shared

    I tried it in Shaered mode and it works fine.
    Can you try it as shared and save it on a local drive?
    which line exactly cause the error??
    Regards,
    Khaled Elshaer
    www.BIMcentre.com

    Remember To Do the Following....
    1. Thank those who have helped you by clicking the Star below their post.
    2. Mark your post SOLVED if it has been answered satisfactorily:
    • Select Thread Tools (on top of your 1st post)
    • Select Mark this thread as Solved

  3. #3
    Registered User
    Join Date
    07-01-2011
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    89

    Re: UserForm crashes excel if workbook is shared

    Hi Kelshaer

    Thanks for your response..

    So, it seems to be when the userform actually opens it doesnt like.

    The two bits of code are in the Workbook_open...

    Please Login or Register  to view this content.
    And the same code in the module (for the buttons)...

    Please Login or Register  to view this content.
    I was wondering maybe it has something to do with the UserForm_Initialize() code? but i couldn't see why it would be?

    Same problem happens when I save it as shared on a local drive too

  4. #4
    Registered User
    Join Date
    07-01-2011
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    89

    Re: UserForm crashes excel if workbook is shared

    OK So, just did a bit more testing

    This is what I did:

    1. Put the file on the shared drive
    2. Shared the file (which automatically saves it)
    3. Closed down excel
    4. Re-opened excel
    5. Userform opened
    6. I then saved the workbook (ctrl+S)
    7. Closed down excel
    8. Re-open excel
    9. Crashes

    Its as if it only crashes for the person that last saved the workbook?

  5. #5
    Valued Forum Contributor
    Join Date
    08-29-2011
    Location
    Mississauga, CANADA
    MS-Off Ver
    Excel 2010
    Posts
    503

    Re: UserForm crashes excel if workbook is shared

    Use the attached file.
    It was fixed
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    07-01-2011
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    89

    Re: UserForm crashes excel if workbook is shared

    I save your file to the network drive... But when I open it now the file still crashes

  7. #7
    Valued Forum Contributor
    Join Date
    08-29-2011
    Location
    Mississauga, CANADA
    MS-Off Ver
    Excel 2010
    Posts
    503

    Re: UserForm crashes excel if workbook is shared

    Minor changes.
    Please try this one
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    07-01-2011
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    89

    Re: UserForm crashes excel if workbook is shared

    No joy i'm afriad

    Tried it on a local drive too, just doesnt seem to want to open

    I really appreciate your help with this though

  9. #9
    Registered User
    Join Date
    07-01-2011
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    89

    Re: UserForm crashes excel if workbook is shared

    Do you think it could be because there's just too much coding?

  10. #10
    Valued Forum Contributor
    Join Date
    08-29-2011
    Location
    Mississauga, CANADA
    MS-Off Ver
    Excel 2010
    Posts
    503

    Re: UserForm crashes excel if workbook is shared

    no.
    I realy can't know what is going wrong. sorry.

  11. #11
    Registered User
    Join Date
    07-01-2011
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    89

    Re: UserForm crashes excel if workbook is shared

    Ok, well thank you for trying

  12. #12
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: UserForm crashes excel if workbook is shared

    I've only had a quick look at the file but
    - shared workbooks are famous for this sort of weird behavior. everyone says don't use them
    - your project doesn't actually compile - you have syntax errors, certainly in the startup form.
    - you have a lot of forms that look pretty much identical. no real need for that. - just use one and change it at runtime.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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