+ Reply to Thread
Results 1 to 4 of 4

Using Array to alter multiple sheets at once

  1. #1
    Registered User
    Join Date
    01-31-2008
    MS-Off Ver
    2010
    Posts
    38

    Using Array to alter multiple sheets at once

    I have a bit of code that sets the password protection on a specific worksheet, here it is:
    Please Login or Register  to view this content.
    (I have a similar one to unlock the sheets too)

    The code works fine but only for one sheet, I'd like to add in more sheets but can't seem to get it to work. From what I've found I think I need the Array function in there, i.e:
    Please Login or Register  to view this content.
    ...but it's not working, can anyone point me in the right direction please?

    Thanks again

    Brelin
    Last edited by Brelin; 11-11-2011 at 05:03 PM.

  2. #2
    Forum Expert Colin Legg's Avatar
    Join Date
    03-30-2008
    Location
    UK
    MS-Off Ver
    365
    Posts
    1,256

    Re: Using Array to alter multiple sheets at once

    Hi,

    Try this
    Please Login or Register  to view this content.
    Hope that helps,

    Colin

    RAD Excel Blog

  3. #3
    Registered User
    Join Date
    01-31-2008
    MS-Off Ver
    2010
    Posts
    38

    Re: Using Array to alter multiple sheets at once

    That's worked a treat

    Thank you!

  4. #4
    Forum Expert Colin Legg's Avatar
    Join Date
    03-30-2008
    Location
    UK
    MS-Off Ver
    365
    Posts
    1,256

    Re: Using Array to alter multiple sheets at once

    Hi,

    Actually, I just noticed an error in your code. These two lines should be done in a single method call:
    Please Login or Register  to view this content.
    Should be:
    Please Login or Register  to view this content.

+ 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