Consulting

Page 2 of 2 FirstFirst 1 2
Results 21 to 23 of 23

Thread: Sleeper: Cannot remove Open password from workbook

  1. #21
    Site Admin
    Urban Myth
    VBAX Guru
    Joined
    May 2004
    Location
    Oregon, United States
    Posts
    4,940
    Location
    Hey Jake, have you tried it with a **** yet?

  2. #22
    Site Admin
    Jedi Master
    VBAX Guru Jacob Hilderbrand's Avatar
    Joined
    Jun 2004
    Location
    Roseville, CA
    Posts
    3,712
    Location
    I haven't tried with a ****, but the file would be encrypted and it wouldn't be easy to un-encrypt it.

    I guess there is really no way to tell what is causing this without moving every sheet, module, userform, and class module to a new workbook and testing one at a time. Given the size of the workbook this is no simple undertaking.

    If I can figure out the actual cause I let you guys know. Thanks everyone for all the suggestions.

  3. #23
    VBAX Regular Mike_R's Avatar
    Joined
    May 2004
    Location
    Plainsboro, NJ
    Posts
    46
    Location
    Wow, what a doozie...

    Hmmm, yeah, the trouble could be in any one of the Worksheets, I guess. It may not be *that* simple, but assuming taht something is "attached" to one of them that is causing this, you might try a shot-gun approach:[vba]Sub Main()
    Dim oSheet As Object

    For Each oSheet In ThisWorkbook.Sheets
    Call oSheet.SaveAs(Sheet.Name & ".xls")
    Next Sheet
    End Sub[/vba] Then you can open them all and see which (if any) complain.

    If it's all of them, then I would save a new blank Worksheet as a Workbook and attach it here so we can kick it around... and/or infect our own computerrs.
    Try out the [VBA] tags!
    Option Explicit, don't leave home without it...


Posting Permissions

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