+ Reply to Thread
Results 1 to 6 of 6

Prompt password when edit the cell

  1. #1
    Registered User
    Join Date
    05-24-2011
    Location
    Ahmednagar, India
    MS-Off Ver
    Excel 2016
    Posts
    30

    Prompt password when edit the cell

    Hi

    I have a macro that locks the cell (cell rangeis given) after entering data into cell & thereafter if we have tochange the value of cell it asks for password. It works well.

    I want somechanges in this macro - currently if I move cursor on locked cell then alsoit prompt for password & i want if i edit that cell by double click or F2then only he ask for password.

    Thanks in Advance !!!

    Please Login or Register  to view this content.
    Thanks


    Vaibhav

  2. #2
    Valued Forum Contributor
    Join Date
    09-21-2011
    Location
    Birmingham UK
    MS-Off Ver
    Excel 2003/7/10
    Posts
    2,188

    Re: Prompt password when edit the cell

    Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)

    End Sub
    Hope this helps

    Sometimes its best to start at the beginning and learn VBA & Excel.

    Please dont ask me to do your work for you, I learnt from Reading books, Recording, F1 and Google and like having all of this knowledge in my head for the next time i wish to do it, or wish to tweak it.
    Available for remote consultancy work PM me

  3. #3
    Registered User
    Join Date
    05-24-2011
    Location
    Ahmednagar, India
    MS-Off Ver
    Excel 2016
    Posts
    30

    Re: Prompt password when edit the cell

    Thanks for reply...

    I am very new to Vb & i dont have much knowledge of VB. Can you just make correction in above code so that i can just copy & paste the code.

  4. #4
    Valued Forum Contributor
    Join Date
    09-21-2011
    Location
    Birmingham UK
    MS-Off Ver
    Excel 2003/7/10
    Posts
    2,188

    Re: Prompt password when edit the cell

    Id look at what the code you have posted is doing, then apply that in the event i mentioned. Do you not understand what you alerady have?

  5. #5
    Registered User
    Join Date
    05-24-2011
    Location
    Ahmednagar, India
    MS-Off Ver
    Excel 2016
    Posts
    30

    Re: Prompt password when edit the cell

    I have copied that code ( event) into vb code but nothing happens....Shall I replace the first line with new sent by you.

  6. #6
    Registered User
    Join Date
    05-24-2011
    Location
    Ahmednagar, India
    MS-Off Ver
    Excel 2016
    Posts
    30

    Re: Prompt password when edit the cell

    I have checked with code its working....but if i pressed F2 to edit the cell then it not prompt for password. Is there any solutions?

+ 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. VBA code that bypass Password prompt for every workbook with one master password
    By pwnyadav007 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-22-2014, 01:45 AM
  2. Replies: 0
    Last Post: 04-21-2011, 11:09 AM
  3. [SOLVED] prompt for password only once
    By Mike Boynton via OfficeKB.com in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-27-2005, 09:05 AM
  4. [SOLVED] Password Prompt
    By Noel in forum Excel General
    Replies: 0
    Last Post: 05-18-2005, 03:06 PM
  5. Password Prompt
    By LuhElle in forum Excel General
    Replies: 2
    Last Post: 03-08-2005, 08: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