Results 1 to 2 of 2

Thread: Changing the contents of a module

  1. #1

    Thread Starter
    Member
    Join Date
    Nov 2000
    Posts
    33
    Problem
    I have a number (over 80) of Excel files that use an auto_run function to protect the sheets on opening. Ineed to change the password the in modules but want to use a macro to perform the task.

    example

    sub auto_run()
    sample
    end sub

    function sample
    active sheet.protect password:="rabbit"
    end function

    How can I change "rabbit" to another word






  2. #2
    Fanatic Member
    Join Date
    Oct 2000
    Location
    London
    Posts
    1,008
    Pass in the password as a parameter.

    Cheers,

    P.
    Not nearly so tired now...

    Haven't been around much so be gentle...

Posting Permissions

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



Click Here to Expand Forum to Full Width