+ Reply to Thread
Results 1 to 2 of 2

Promting Password when clicking on the button

  1. #1
    Registered User
    Join Date
    10-04-2011
    Location
    zurich
    MS-Off Ver
    Excel 2003
    Posts
    34

    Promting Password when clicking on the button

    Hi,

    I am calling a macro which will generate a code based on the data in the xls sheet,I need to keep a password before calling the actual macro. Example whenever I am clicking the Generate Code button it should display me a password box, and If I entered the password(which is defined in the vba code) then it should call my actual macro and generate the code, if I have entered incorrect password then it should display an error box saying password is incorrect and it should not generate any code.

    Please give me some hints or tell me if I can refer any articles which is similar.

    Regards,
    Swathi
    Attached Files Attached Files

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Promting Password when clicking on the button

    What's the point in uploading a file with the VBA Project protected

    Please Login or Register  to view this content.
    Hope that helps.

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

    Free DataBaseForm example

+ 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