+ Reply to Thread
Results 1 to 10 of 10

How do i get use macros when the excel doc. is password protected

  1. #1
    Registered User
    Join Date
    11-10-2009
    Location
    Larvik
    MS-Off Ver
    Excel 2003
    Posts
    6

    How do i get use macros when the excel doc. is password protected

    How do i get use macros when the excel doc. is password protected?? can some answer me please.. :D

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: How do i get use macros when the excel doc. is password protected

    If you don't know the password(s) you don't.

    (Also, as a pre-emptive strike, note that questions regards breaking passwords are not permitted on this forum)

  3. #3
    Registered User
    Join Date
    11-10-2009
    Location
    Larvik
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: How do i get use macros when the excel doc. is password protected

    I know the password.. i just want some cells to be protected with password... so when i password protect the sheet. my autohide macro won't run ..... please have a answer :D

  4. #4
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,431

    Re: How do i get use macros when the excel doc. is password protected

    If you code affects cells that are protected then you need to remove protection first, then change cells, then re-apply protection.
    Cheers
    Andy
    www.andypope.info

  5. #5
    Registered User
    Join Date
    11-10-2009
    Location
    Larvik
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: How do i get use macros when the excel doc. is password protected

    thx. but not working. why doesent the hide macro work on the unprotected celles ? when the sheet is password protected.if i un lock the password protection the macro works perfect...

  6. #6
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,431

    Re: How do i get use macros when the excel doc. is password protected

    without seeing the code and the workbook your guess is as good as ours.

  7. #7
    Registered User
    Join Date
    11-10-2009
    Location
    Larvik
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: How do i get use macros when the excel doc. is password protected

    Sub Hiding_unwanted_rows()
    '

    '
    ActiveWindow.SmallScroll Down:=-6
    Sheets("Summasjon").Select
    ActiveWindow.SmallScroll Down:=-15
    Range("D6").Select
    Selection.AutoFilter
    Selection.AutoFilter Field:=4, Criteria1:="<>0", Operator:=xlAnd
    ActiveWindow.SmallScroll Down:=-30
    End Sub


    why dowsent it work when sheet is password protected ???

  8. #8
    Registered User
    Join Date
    11-10-2009
    Location
    Larvik
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: How do i get use macros when the excel doc. is password protected

    please help me :D:D:D:D:D

  9. #9
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,431

    Re: How do i get use macros when the excel doc. is password protected

    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


    Because your routine does not contain any code to handle protection as I suggested.

    Change "password" as appropriate.

    Please Login or Register  to view this content.

  10. #10
    Registered User
    Join Date
    11-10-2009
    Location
    Larvik
    MS-Off Ver
    Excel 2003
    Posts
    6

    Smile Re: How do i get use macros when the excel doc. is password protected

    Thank you so much for your help. ooohhh ..

+ 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