Results 1 to 8 of 8

Thread: Unable to set the visible property of the worksheet class

  1. #1
    Junior Member
    Join Date
    Apr 2012
    Posts
    21
    Rep Power
    0

    Unable to set the visible property of the worksheet class

    Hi

    I am trying to hide the worksheet using 02-xlsheetVeryhidden but when i try to change the visible property i am getting error as Unable to set the visible property of the worksheet class. it would be great if any one could tell me the procedure to get it done.

    i have a vb project i want to hide some worksheet & there formula from another users. worksheet password can be cracked by using macro. I have already locked the project by providing password to standard module. Any best way to hide worksheet & formula's


    https://www.youtube.com/channel/UCnxwq2aGJRbjOo_MO54oaHA
    https://www.youtube.com/watch?v=f7xZivqLZxc&lc=Ugxq4JHRza_zx3sz0fx4AaABAg
    https://www.youtube.com/watch?v=f7xZivqLZxc&lc=UgzMCQUIQgrbec400jl4AaABAg
    https://www.youtube.com/watch?v=f7xZivqLZxc&lc=UgwhVTFaD469mW9wO194AaABAg. 9gJzxwFcnPU9gORqKw5tW_
    https://www.youtube.com/watch?v=f7xZivqLZxc&lc=Ugyb8nmKKoXvcdM58gV4AaABAg
    https://www.youtube.com/watch?v=f7xZivqLZxc&lc=UgwvvXcl1oa79xS7BAV4AaABAg
    https://www.youtube.com/watch?v=f7xZivqLZxc&lc=UgxvIFArksPprylHXYZ4AaABAg
    https://www.youtube.com/watch?v=f7xZivqLZxc&lc=Ugxq4JHRza_zx3sz0fx4AaABAg
    https://www.youtube.com/channel/UCnxwq2aGJRbjOo_MO54oaHA
    Last edited by DocAElstein; 07-11-2023 at 01:06 PM.

  2. #2

  3. #3
    Administrator Admin's Avatar
    Join Date
    Mar 2011
    Posts
    1,123
    Rep Power
    10
    Hi

    Could you post the whole code here?
    Cheers !

    Excel Range to BBCode Table
    Use Social Networking Tools If You Like the Answers !

    Message to Cross Posters

    @ Home - Office 2010/2013/2016 on Win 10 (64 bit); @ Work - Office 2016 on Win 10 (64 bit)

  4. #4
    Administrator Admin's Avatar
    Join Date
    Mar 2011
    Posts
    1,123
    Rep Power
    10
    @ prince, please use code tags while posting codes
    Cheers !

    Excel Range to BBCode Table
    Use Social Networking Tools If You Like the Answers !

    Message to Cross Posters

    @ Home - Office 2010/2013/2016 on Win 10 (64 bit); @ Work - Office 2016 on Win 10 (64 bit)

  5. #5
    Junior Member
    Join Date
    Apr 2012
    Posts
    21
    Rep Power
    0
    Hi Admin

    below code working fine for me. but if i go to visual basic editor. In project Explorer window if i select sheet3. In property window of sheet3.
    visible properties are 1xlsheetvisible, 0 xlsheethidden, 2 xlSheetVeryHidden. i can not set visible property of sheet3 Manually using droup down. i get error.
    but with below code i can do it.

    Code:
    Sub Test()
    Sheet3.Visible = xlSheetVeryHidden
    End Sub

  6. #6
    Senior Member
    Join Date
    Apr 2011
    Posts
    190
    Rep Power
    14
    Worksheets("TempParameter").Visible = xlSheetHidden ----- this is what I use
    xl2007 - Windows 7
    xl hates the 255 number

  7. #7
    Junior Member
    Join Date
    May 2012
    Posts
    4
    Rep Power
    0
    You can set Visible and Hidden by the Properties pane, but for VeryHidden it is by VBA only. It's supposed to do that.

  8. #8
    Junior Member
    Join Date
    Apr 2012
    Posts
    21
    Rep Power
    0
    Thanks Zack for this info.

Similar Threads

  1. Replies: 4
    Last Post: 05-05-2013, 04:01 AM
  2. Unable to Get ElementID In VBA IE Automation
    By ashu1990 in forum Excel Help
    Replies: 9
    Last Post: 03-28-2013, 11:58 AM
  3. Print Nth Worksheet To Mth Worksheet using VBA
    By Ryan_Bernal in forum Excel Help
    Replies: 2
    Last Post: 02-28-2013, 06:57 PM
  4. Replacement for the Flawed UsedRange Property
    By Rick Rothstein in forum Rick Rothstein's Corner
    Replies: 9
    Last Post: 12-04-2012, 08:09 PM
  5. Using property ColorScaleCriteria color you cells
    By Rasm in forum Download Center
    Replies: 0
    Last Post: 12-04-2011, 09:20 PM

Posting Permissions

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