dcsimg
Results 1 to 2 of 2

Thread: How to unlock and lock again an xlsx sheet without MS Excel?

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jan 2016
    Posts
    87

    How to unlock and lock again an xlsx sheet without MS Excel?

    Hi!
    I have to realize a task where I have to unlock a protected xy sheet lets say in the file x.xlsx without
    MS Excel but after I have opened in MS Excel I should also protect that yx sheet in the same x.xlsx file.

    Is this possible to do outside Excel?

    If yes, how can I do it through vbs or maybe I can write a simple I/O app in VB6?

    Thank you for any suggestion.
    Last edited by Jodank; Jan 3rd, 2019 at 04:07 PM.

  2. #2
    PowerPoster
    Join Date
    Dec 2004
    Posts
    23,929

    Re: How to unlock and lock again an xlsx sheet without MS Excel?

    there are some classes posted in the vb6 forum for reading and writing to .xlsx files as compressed xml files
    wqweto springs to mind as an author
    http://www.vbforums.com/showthread.p...+without+excel

    i have no idea if this will work with protected workbooks
    i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
    Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next

    dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part

    come back and mark your original post as resolved if your problem is fixed
    pete

Posting Permissions

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



Featured


Click Here to Expand Forum to Full Width