Results 1 to 3 of 3
  1. #1
    Silver Lounger
    Join Date
    Dec 2000
    Location
    California, USA
    Posts
    1,758
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Controling VBA Projects (XP)

    I would like to control the VBA Project(MY_XL_File.xls) which is password protected. My challenge is to unprotect the project and edit code in the Microsoft Excel Object named "ThisWorkbook".

    Any advice or references would be appreciated.
    John

  2. #2
    Platinum Lounger
    Join Date
    Feb 2001
    Location
    Weert, Limburg, Netherlands
    Posts
    4,812
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Controling VBA Projects (XP)

    There is no object that enables unprotecting from code. The only way I know of is (very) unreliable and makes use of SENDKEYS.
    Jan Karel Pieterse
    Microsoft Excel MVP, WMVP
    www.jkp-ads.com
    Professional Office Developers Association

  3. #3
    WS Lounge VIP sdckapr's Avatar
    Join Date
    Jul 2002
    Location
    Pittsburgh, Pennsylvania, USA
    Posts
    11,225
    Thanks
    14
    Thanked 342 Times in 335 Posts

    Re: Controling VBA Projects (XP)

    This doesn't help with the "unprotecting", BUT...
    If you want to edit the code (via code) see the information on VB Editor Programming from Chip Pearson.

    He doesn't have anything about editing, but he has code for reading and writing which should be adaptable.

    Steve

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •