+ Reply to Thread
Results 1 to 6 of 6

New Sheet Add, Sheet visible & Menu disable problem

  1. #1
    Registered User
    Join Date
    11-10-2008
    Location
    India
    Posts
    35

    New Sheet Add, Sheet visible & Menu disable problem

    Hi,
    Problem I: I've a excel file with multiple sheet & VBA coding. In coding has some sheet locking- unlocking code. Here has some code to set page visibility. When I'm trying to change page visibility then getting problem. My sheet visibility is now veryhide and I'm trying to set visible (-1 enum value), but it's not allow me to set it. Now I can lock-unlock the sheet (codes are executing).

    Problem II: When I'm going to Menu -> Insert -> Worksheet then it's disable, and when I'm right clicking on sheet then Copy, Insert, Delete popup option is disable. I need to enable these.

    Problem III: To solve problem II I've tried to write some code to enable Worksheet menu. This code is;
    Please Login or Register  to view this content.
    But this code is working fine for File, Edit, etc menu & sub-menu but not for Worksheet.

    My file is password protected and I'm giving password correctly. Seems to me for that file has some settings, which I don't know. If any one know solution then please help me.

    Thanks in advanced,
    Suman
    Last edited by VBA Noob; 11-10-2008 at 05:14 AM.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531
    Is the workbook protected ?
    (not just the worksheet)

  3. #3
    Registered User
    Join Date
    11-10-2008
    Location
    India
    Posts
    35
    It's protected but in runtime it's getting unprotecting by this code:
    Please Login or Register  to view this content.
    From my side, I've very little knowledge on Excel so you can help me by giving alternate idea.
    Last edited by VBA Noob; 11-10-2008 at 05:14 AM. Reason: Added code tags as per forum rules

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531
    That looks like worksheet protection to me not Workbook protection
    (but I can't see how wsSheet is defined to be sure...I suspect as a Worksheet)

    All of your points make me thing that in addition to the Worksheets being protected the Workbook is also protected... in Excel with the following keystrokes:

    ALT + T -> P -> W

    Does the resulting dialog box does it ask you to enter a password to protect or unprotect the Workbook ?

  5. #5
    Registered User
    Join Date
    11-10-2008
    Location
    India
    Posts
    35

    Thumbs up

    Thanks.
    I've got a way to solve my problem. Now I think I can solve the problem.

  6. #6
    Registered User
    Join Date
    11-10-2008
    Location
    India
    Posts
    35

    Lightbulb

    Hi,
    My problem coming from Locking problem, but can't getting why it's happening. Can you tell me why this settings is. Please see attachment of screen shot.

    Thanks,
    Suman
    Attached Images Attached Images

+ 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