xlNoSelection not persisting after the file is closed

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vikas000000a
    New Member
    • Jan 2008
    • 46

    #16
    Originally posted by Killer42
    Sorry we couldn't help more. If you do find an answer, I'm sure we'd all appreciate your letting us know. That will help anyone else who comes looking for the info in future.

    Now that is interesting! I wonder how that came about. The automation interface must be failing to set something that the "real" application does.

    Maybe there is some way you can take advantage of it. For example, after you turn on the protection, perhaps you could display the spreadsheet and tell Windows that the user pressed Ctrl-S or something. A lot would depend on whether the bug is in the setting of the protection, or the save. The save seems more likely though, since you said that the protection works until the file is reopened.

    Hey Killer,
    I got the solution of my problem. I installed MS Office 2007 and run the same program without any modification at all. Now the excel files are protected as I wanted them to be. As I have to give only the output excel files to the users, it doesn't bother me if the end user has got Office 2007 or not.

    Finally, I did it man.

    Comment

    • sistaskriket
      New Member
      • Feb 2009
      • 1

      #17
      Problem solved in Excel2003

      I had exactly the same problem with Excel 2002.
      With Excel 2003 the macrocode works as intended, meaning that NoSelection persists after Close.
      When I open the worksheet manually the protected cells can not be selected. That goes for the entire worksheet.
      In addition to that I also hide the columns where I have my protected cells..

      Comment

      Working...