+ Reply to Thread
Results 1 to 5 of 5

Want users to not be able to use shortcuts

  1. #1
    Forum Contributor
    Join Date
    07-06-2008
    Location
    NC
    Posts
    149

    Want users to not be able to use shortcuts

    I saw these here...is this all all I need to stop users from cutting/poasting/copying and also not to be able to stop macros from running or stop them and see them

    PHP Code: 
    '' these here can be omitted they prevent the ability to copy,paste,del,insert
    'EnableControl 21, False ' cut
    'EnableControl 22, False ' paste
    'EnableControl 755, False ' pastespecial
    'Application.OnKey "^c", "Error"
    '
    Application.OnKey "^v""Error"
    'Application.OnKey "+{DEL}", "Error"
    '
    Application.OnKey "+{INSERT}""Error"
    'Application.CellDragAndDrop = False
    '
    Application.OnDoubleClick "Error" 
    Was looking to run these when book opens and then to allow them when book closes or saves

    Are there any more I need or could use

  2. #2
    Forum Expert
    Join Date
    08-27-2008
    Location
    England
    MS-Off Ver
    2010
    Posts
    2,561
    Not able to stop macros from running? i.e. prevent Ctrl+Break?

    That might be quite tricky and/or unwise - if you (not that you ever would) somehow made an infinite loop in your code... Well, you know.

    If you just password protect the project: Tools -> VBAproject properties -> protection -> lock for viewing, you can prevent people from looking at your precious code without potentially ruining their entire Excel instance.

    You may also want to think about the potential choices re: running these settting changes on workbook open events or workbook activate events and whether or not you're going to "disable" users from using other workbooks whilst using your tool. Don't make people hate you!

    Generally, VBA projects are not great for particularly vigorous security. I know Jack and Roy have a pretty good secure lockdown tool but it's not free - google it.

    HTH
    Last edited by Cheeky Charlie; 09-07-2008 at 12:48 PM. Reason: grammar - I'm alytirate

  3. #3
    Forum Contributor
    Join Date
    07-06-2008
    Location
    NC
    Posts
    149

    Thanks

    What words should I google search??

    VBA Protection?

    I would be interested in seeing the code. I do run a code (macro to select the user and it allows only those pages to be secure and I do password protect the pages.)

    So far i can not crack it.

    I think I got it from Roy along time ago.

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    I really would be careful before changing a user's settings. If you fail to reset hem you will more than likely end up with some disgruntled users, maybe even the boss!

    It should really be sufficient to password protect the sheets and/or workbook. Although not over strong this will deter most users.

    You can google for excel dictator application.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  5. #5
    Forum Expert
    Join Date
    08-27-2008
    Location
    England
    MS-Off Ver
    2010
    Posts
    2,561
    Actually, it's not that easy to find... somebody needs to work on their SEO...

    http://excel-it.com/vba_protection.htm

    This is above and beyond locking a project in the normal way (which is fairly breakable, if that's what someone wants to do!)

    HTH

    PS, As I've already alluded to, Roy and I are on the same page re: fiddling with things and messing them up for users - you have to be pretty confident you know what you're doing if you're going to play these games...
    Last edited by Cheeky Charlie; 09-07-2008 at 01:36 PM.

+ 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. List of all users who are sharing a workbook
    By oldjackbob in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-13-2008, 03:55 PM
  2. Excel format settings for multiple users??
    By thomas.szwed in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-29-2007, 07:35 AM
  3. Excel format settings for users
    By thomas.szwed in forum Excel General
    Replies: 0
    Last Post: 11-28-2007, 12:49 PM
  4. Users can change Password
    By Habib in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-05-2007, 06:07 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