+ Reply to Thread
Results 1 to 7 of 7

Protecting sheets in Excel 2003, 2007 and 2010

  1. #1
    Registered User
    Join Date
    12-29-2010
    Location
    italy
    MS-Off Ver
    Excel 2010
    Posts
    20

    Protecting sheets in Excel 2003, 2007 and 2010

    hi guys, some of you knows if in different version of excel the protection VBA code is the same ?

    any differences ?

    i have a class module called Data manager in which i have this function
    Please Login or Register  to view this content.

    and it works fine in excel 2003 but when it runs on excel 2007 and excel 2010 cause some problem in the sheet content. some chart and button changes their position when the sheet is protected.. even if theese object are linked to a specific cell...

    anyone who can help me ?

    bye and thanks :D

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Protecting sheets in Excel 2003, 2007 and 2010

    Protection remains the same in all versions afaik
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Registered User
    Join Date
    12-29-2010
    Location
    italy
    MS-Off Ver
    Excel 2010
    Posts
    20

    Re: Protecting sheets in Excel 2003, 2007 and 2010

    Quote Originally Posted by royUK View Post
    Protection remains the same in all versions afaik


    Thanks

    so using

    Please Login or Register  to view this content.
    is the same as
    Please Login or Register  to view this content.
    ?


    and the last thing :P how can i avoid that oject such as chart and buttons changest their porition after protection ?


    thanks :D
    Last edited by kensei; 01-14-2011 at 06:04 AM.

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Protecting sheets in Excel 2003, 2007 and 2010

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code. Posting code without them makes your code hard to read and difficult to be copied for testing. Highlight your code and click the # at the top of your post window. For more information about these and other tags, found here

  5. #5
    Registered User
    Join Date
    12-29-2010
    Location
    italy
    MS-Off Ver
    Excel 2010
    Posts
    20

    Re: Protecting sheets in Excel 2003, 2007 and 2010

    done! :D

    sorry i thought that for a single line could be omitted ^_^

  6. #6
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Protecting sheets in Excel 2003, 2007 and 2010

    We like all code snippets to be displayed with tags.

    Call is used to run a Procedure or Macro, so the second line of code should work. You can declare the password as a Constant

    Please Login or Register  to view this content.
    I'm not sure why the objects are moving maybe attach the workbook in a new thread on that problem

  7. #7
    Registered User
    Join Date
    12-29-2010
    Location
    italy
    MS-Off Ver
    Excel 2010
    Posts
    20

    Re: Protecting sheets in Excel 2003, 2007 and 2010

    Quote Originally Posted by royUK View Post
    We like all code snippets to be displayed with tags.

    Call is used to run a Procedure or Macro, so the second line of code should work. You can declare the password as a Constant

    Please Login or Register  to view this content.
    I'm not sure why the objects are moving maybe attach the workbook in a new thread on that problem
    yep the pdw is delared as constant,
    i posted the password directly to keep the code short :D

    i posted the element position problem here i don't know if it is the correct section: http://www.excelforum.com/excel-new-...to-2010-a.html some day ago but only yesterday i start thinking that the problem could be protection ...

    thanks roy

+ 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