+ Reply to Thread
Results 1 to 18 of 18

Is it possible to bypass the pw to modify all wb

  1. #1
    Forum Contributor
    Join Date
    08-14-2012
    Location
    USA
    MS-Off Ver
    Excel 2007, MS 365 (Windows 10 Pro 64-bit)
    Posts
    810

    Is it possible to bypass the pw to modify all wb

    Hello All,
    I would like to modify some data in each WB. Each time the WB open, it will be prompt the pwuserform to let user enter the password. Is it possible to bypass the pw by enter pw in vba code?

    pwUserForm
    TextBox1 (to enter pw here)
    Enter (CommandButton1)
    Exit (CommandButton2)
    This is a code in wb open:

    Please Login or Register  to view this content.
    Regards,
    tt3


    http://www.excelforum.com/excel-prog...me-folder.html
    Last edited by tuongtu3; 05-15-2013 at 01:52 PM. Reason: Solved

  2. #2
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Is it possible to bypass the pw to modify all wb

    use
    Please Login or Register  to view this content.
    before opening the workbook
    Josie

    if at first you don't succeed try doing it the way your wife told you to

  3. #3
    Forum Contributor
    Join Date
    08-14-2012
    Location
    USA
    MS-Off Ver
    Excel 2007, MS 365 (Windows 10 Pro 64-bit)
    Posts
    810

    Re: Is it possible to bypass the pw to modify all wb

    Hi JosephP,
    Yes, the code works fine.
    _The code stops when WB does not have a ws name "Status". Is there any way to skip any wb has no ws "status" or I have to create new ws in each wb?

    Regards,
    tt3

  4. #4
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Is it possible to bypass the pw to modify all wb

    use
    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    08-14-2012
    Location
    USA
    MS-Off Ver
    Excel 2007, MS 365 (Windows 10 Pro 64-bit)
    Posts
    810

    Re: Is it possible to bypass the pw to modify all wb

    I got an error with Paste Transpose:

    Please Login or Register  to view this content.
    Regards,
    tt3

  6. #6
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Is it possible to bypass the pw to modify all wb

    Where is the copy command in your code?

    Change this line from
    Please Login or Register  to view this content.
    to
    Please Login or Register  to view this content.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  7. #7
    Forum Contributor
    Join Date
    08-14-2012
    Location
    USA
    MS-Off Ver
    Excel 2007, MS 365 (Windows 10 Pro 64-bit)
    Posts
    810

    Re: Is it possible to bypass the pw to modify all wb

    The copy line is in below:

    Please Login or Register  to view this content.
    Regards,
    tt3
    Last edited by tuongtu3; 05-14-2013 at 02:28 AM. Reason: edit code

  8. #8
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Is it possible to bypass the pw to modify all wb

    perhaps
    Please Login or Register  to view this content.

  9. #9
    Forum Contributor
    Join Date
    08-14-2012
    Location
    USA
    MS-Off Ver
    Excel 2007, MS 365 (Windows 10 Pro 64-bit)
    Posts
    810

    Re: Is it possible to bypass the pw to modify all wb

    Hi JosephP,
    I got an error "Run-Time error '438'
    Object doesn't support this property of method

    Please Login or Register  to view this content.
    Regards,
    tt3

  10. #10
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Is it possible to bypass the pw to modify all wb

    I don't think that's possible with the code I posted

  11. #11
    Forum Contributor
    Join Date
    08-14-2012
    Location
    USA
    MS-Off Ver
    Excel 2007, MS 365 (Windows 10 Pro 64-bit)
    Posts
    810

    Re: Is it possible to bypass the pw to modify all wb

    Hi JosephP,
    The code works fine from WS to WS within same WB, but it got an error when I apply to paste from WB to WB.
    Please Login or Register  to view this content.
    Last edited by tuongtu3; 05-14-2013 at 12:16 PM. Reason: spelling

  12. #12
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Is it possible to bypass the pw to modify all wb

    I still can't see how you can get a 438 error from that code

  13. #13
    Forum Contributor
    Join Date
    08-14-2012
    Location
    USA
    MS-Off Ver
    Excel 2007, MS 365 (Windows 10 Pro 64-bit)
    Posts
    810

    Re: Is it possible to bypass the pw to modify all wb

    I got error 1004

    Please Login or Register  to view this content.

  14. #14
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Is it possible to bypass the pw to modify all wb

    perhaps replace
    Please Login or Register  to view this content.
    with
    Please Login or Register  to view this content.

  15. #15
    Forum Contributor
    Join Date
    08-14-2012
    Location
    USA
    MS-Off Ver
    Excel 2007, MS 365 (Windows 10 Pro 64-bit)
    Posts
    810

    Re: Is it possible to bypass the pw to modify all wb

    Hi JosephP,
    The code works fine and how to open the wb without enter the pw:

    Please Login or Register  to view this content.
    Regards,
    tt3

  16. #16
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Is it possible to bypass the pw to modify all wb

    Please Login or Register  to view this content.

  17. #17
    Forum Contributor
    Join Date
    08-14-2012
    Location
    USA
    MS-Off Ver
    Excel 2007, MS 365 (Windows 10 Pro 64-bit)
    Posts
    810

    Re: Is it possible to bypass the pw to modify all wb

    Hi JosephP,
    Thank you very much for your time and your help.

    Regards,
    tt3

  18. #18
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Is it possible to bypass the pw to modify all wb

    you're welcome :-)

+ 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