+ Reply to Thread
Results 1 to 2 of 2

Unprotect switches sheet

  1. #1
    Registered User
    Join Date
    10-08-2010
    Location
    Israel
    MS-Off Ver
    Excel 2003
    Posts
    2

    Unprotect switches sheet

    Hi all
    I have an UI problem when unprotecting a sheet from the VBA
    I have an excel with 2 sheets.
    on the first sheet I have a macro which does unprotect to the second sheet.
    e.g.
    Please Login or Register  to view this content.
    the problem is when I do that the excel switches to the second sheet and immediately
    returns to the first sheet.
    it seems that when doing unprotect to a sheet, then that sheet must be in focus
    any thoughts to how to overcome this?
    Thanks
    Last edited by royUK; 10-31-2010 at 04:17 AM.

  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: Unporotect switches sheet

    There's no reason why your line of code should activate the sheet. There must be more code that is doing this.

    Note: use Code Tags for all code that you post
    Hope that helps.

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

    Free DataBaseForm example

+ 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