+ Reply to Thread
Results 1 to 11 of 11

how to disable the design mode

  1. #1
    Registered User
    Join Date
    09-04-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2010
    Posts
    26

    how to disable the design mode

    Hi all,

    I have created a workbook that has a before save macro and
    It works perfectly. Until i discover that users are entering the design
    Mode then making changes on the cell and click save while on design
    Mode.

    My problem is they are able to bypass my vba code when they save
    The workbook while in the design mode because the vba code will not
    Execute in this mode,

    Is there any way to solve this problem? Thanks in advance for all the response

  2. #2
    Valued Forum Contributor PeteABC123's Avatar
    Join Date
    09-21-2012
    Location
    Chicago, IL
    MS-Off Ver
    MS Office 365 ver 2202
    Posts
    1,104

    Re: how to disable the design mode

    You might try this oct2mine:
    "lock project for viewing"
    under tools|VBAProject Propertiesl protection

    Check the box to lock project.
    Enter password, save the file, close it, and reopen.

    Next time someone tries to view code, they'll face a password prompt, and no visible vba code..

    To remove vba protection, reverse the steps, and uncheck the box, remove your password from both password fields. save the file, and close.

    Pete
    Last edited by PeteABC123; 03-13-2015 at 11:24 AM. Reason: added details

  3. #3
    Registered User
    Join Date
    09-04-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2010
    Posts
    26

    Re: how to disable the design mode

    Hi peteABC123,

    Ive already tried that but it only prevent user on viewing the vba codes. What i
    Exactly need is to disable the design mode to prevent users going to the design
    Mode of the worksheet because once they enable the design mode, all my vba codes
    Are not working and they are free to do whatever they want in the worksheet cells. Hope someone could help me regarding this. Thanks pete for your response

  4. #4
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,758

    Re: how to disable the design mode

    Perhaps something like

    Please Login or Register  to view this content.
    Alf

  5. #5
    Registered User
    Join Date
    09-04-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2010
    Posts
    26

    Re: how to disable the design mode

    I have tried this but it doesnt work at all. someone how know how to solve this problem please

  6. #6
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,758

    Re: how to disable the design mode

    I'll have a last go at this problem then I'm out of ideas

    Please Login or Register  to view this content.
    Alf

  7. #7
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,436

    Re: how to disable the design mode

    you can use customUI to display DesignMode

    <customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui" >
    <commands >
    <command
    enabled="false"
    idMso="DesignMode"/>
    </commands >
    </customUI >
    Attached Files Attached Files
    Cheers
    Andy
    www.andypope.info

  8. #8
    Registered User
    Join Date
    07-14-2013
    Location
    portugal
    MS-Off Ver
    Excel 2010
    Posts
    48

    Re: how to disable the design mode

    Hello,

    Your excel atteched file it's the solution that i want.

    What code do you put on file 1071932.xlsm or how/where can i put it? Can you help?

    many thanks

  9. #9
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: how to disable the design mode

    Hello
    Search for Office Custom UI Editor >> download and install >> Open it and using Open command to select the file of Andy and you will see the code
    < ----- Please click the little star * next to add reputation if my post helps you
    Visit Forum : From Here

  10. #10
    Registered User
    Join Date
    12-05-2012
    Location
    Rome
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: how to disable the design mode

    First thanks a lot, I had / have the same problem.

    Indeed the problem remains open because the user can get the same effect by pressing Alt + F11 and then the pause button (it works even if the VBA is protected).

    Please, can you tell me if it is possible to act in the same way as above also for the keys of the development environment?
    If it is possible what is the relevant idMso?

    Thanks in advance.
    Last edited by tomluigi; 09-24-2019 at 06:29 AM. Reason: typing blunder

  11. #11
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: how to disable the design mode

    Quote Originally Posted by tomluigi View Post
    First thanks a lot, I had / have the same problem.

    Indeed the problem remains open because the user can get the same effect by pressing Alt + F11 and then the pause button (it works even if the VBA is protected).

    Please, can you tell me if it is possible to act in the same way as above also for the keys of the development environment?
    If it is possible what is the relevant idMso?

    Thanks in advance.
    Administrative Note:

    Welcome to the forum.

    We are happy to help, however whilst you feel your request is similar to this thread, experience has shown that things soon get confusing when answers refer to particular cells/ranges/sheets which are unique to your post and not relevant to the original.

    Please see Forum Rule #4 about hijacking and start a new thread for your query.

    If you are not familiar with how to start a new thread see the FAQ: How to start a new thread
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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. Replies: 4
    Last Post: 06-06-2013, 10:21 AM
  2. [SOLVED] Disable Design Mode through code
    By Ashali in forum Excel Programming / VBA / Macros
    Replies: 19
    Last Post: 08-14-2012, 03:58 AM
  3. How to Disable the Design mode of EXcel Sheet....
    By rajendran in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-07-2005, 08:04 AM
  4. [SOLVED] Hyperlinks Inserted in Design Mode inactive once Exited Design Mod
    By Craig in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-16-2005, 01:06 PM
  5. Replies: 0
    Last Post: 01-07-2005, 04:06 PM

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