+ Reply to Thread
Results 1 to 4 of 4

Kill excel if Macro password is wrong

  1. #1
    Registered User
    Join Date
    11-20-2009
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    5

    Kill excel if Macro password is wrong

    Hi all,

    I need a help. I had password protected the VBA Code but still i want to secure it by putting minimum attempts to login if the attempt fails the code has to kill the VBA code or excel worksheet.

    can I have copy or sample code or work sheet on this.

    @ moderators: I don't know ,either it's a repost or something frankly this is my first post ... i haven't found any thread related to this topic.....please excuse if it's repost and provide me the link.....


    Thanks,

    Mani

  2. #2
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: Kill excel if Macro password is wrong

    To my knowledge this is not possible I'm afraid.

    You could maybe look at distributing your code as a COM add-in: http://www.cpearson.com/excel/CreatingCOMAddIn.aspx

    Otherwise you'll just have to live with the fact that people will be able to get to your code if they really want to.

    Dom
    "May the fleas of a thousand camels infest the crotch of the person who screws up your day and may their arms be too short to scratch..."

    Use code tags when posting your VBA code: [code] Your code here [/code]

    Remember, saying thanks only takes a second or two. Click the little star to give some Rep if you think an answer deserves it.

  3. #3
    Registered User
    Join Date
    11-20-2009
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Kill excel if Macro password is wrong

    more help please.........

  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 Re: Kill excel if Macro password is wrong

    Quote Originally Posted by Domski View Post
    To my knowledge this is not possible I'm afraid.

    You could maybe look at distributing your code as a COM add-in: http://www.cpearson.com/excel/CreatingCOMAddIn.aspx

    Otherwise you'll just have to live with the fact that people will be able to get to your code if they really want to.

    Dom
    Good afternoon mani.ragi

    Domski has pretty much hit the nail on the head - and he's perfectly correct.
    Excel is not a secure development medium ; it's something professional developers have to live with, like it or not.

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

+ 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