+ Reply to Thread
Results 1 to 3 of 3

password protect worksheets upon opening or saving a workbook.

  1. #1
    Forum Contributor
    Join Date
    05-20-2013
    Location
    Ann Arbor, MI
    MS-Off Ver
    Excel 2010
    Posts
    255

    password protect worksheets upon opening or saving a workbook.

    Hi,

    is there some time of function or syntax that allows you to do certain things when the workbook is opened?

    kind of like how there's a 'userform_initialize' in vba.. is there something similar to that for a workbook? ie: workbook_initialize?

    Thanks!

  2. #2
    Forum Contributor bentleybob's Avatar
    Join Date
    02-27-2009
    Location
    Seattle, WA
    MS-Off Ver
    Excel 2010
    Posts
    644

    Re: password protect worksheets upon opening or saving a workbook.

    Private Sub Workbook_Open()
    .
    .
    .
    End Sub

    Put in the "This WorkbooK" object.

  3. #3
    Forum Contributor
    Join Date
    05-20-2013
    Location
    Ann Arbor, MI
    MS-Off Ver
    Excel 2010
    Posts
    255

    Re: password protect worksheets upon opening or saving a workbook.

    Thanks! I always forget about the "this workbook" object and it wasn't working anywhere else!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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