Results 1 to 4 of 4

Thread: [RESOLVED] Not allow users to delete a sheet

  1. #1

    Thread Starter
    Hyperactive Member pgag45's Avatar
    Join Date
    Mar 2007
    Location
    Colorado
    Posts
    262

    Resolved [RESOLVED] Not allow users to delete a sheet

    I've been searching for a protection command that doesn't allow the user to delete/rename a sheet, but haven't found it exactly. I know I could just protect the sheet, but I want the user to be able to edit any info in it...

    Also, I need to be able to delete/rename the sheet through the code (would I need to take this property away, delete/rename the sheet, then set the property again?)

    So basically is there a really low level property of protection that doesn't allow the user to delete or rename sheets in the workbook (still allowing the programmer total control), but still able to edit any data within those sheets?

    thanks

  2. #2
    Discovering Life Siddharth Rout's Avatar
    Join Date
    Feb 2005
    Location
    Mumbai, India
    Posts
    12,001

    Re: Not allow users to delete a sheet

    I've been searching for a protection command that doesn't allow the user to delete/rename a sheet, but haven't found it exactly. I know I could just protect the sheet, but I want the user to be able to edit any info in it...
    yes that is possible

    Simply protect the workbook
    tip: you can protect the structure of the workbook which will ensure that no one can delete the sheet.

    Also, I need to be able to delete/rename the sheet through the code (would I need to take this property away, delete/rename the sheet, then set the property again?)
    That again is possible.

    use the .Protect and .Unprotect command to achieve what you want thru code. Give it a try. In case you get stuck, simply post a question here

    Hope this helps...
    A good exercise for the Heart is to bend down and help another up...
    Please Mark your Thread "Resolved", if the query is solved


    MyGear:
    ★ CPU ★ Ryzen 5 5800X
    ★ GPU ★ NVIDIA GeForce RTX 3080 TI Founder Edition
    ★ RAM ★ G. Skill Trident Z RGB 32GB 3600MHz
    ★ MB ★ ASUS TUF GAMING X570 (WI-FI) ATX Gaming
    ★ Storage ★ SSD SB-ROCKET-1TB + SEAGATE 2TB Barracuda IHD
    ★ Cooling ★ NOCTUA NH-D15 CHROMAX BLACK 140mm + 10 of Noctua NF-F12 PWM
    ★ PSU ★ ANTEC HCG-1000-EXTREME 1000 Watt 80 Plus Gold Fully Modular PSU
    ★ Case ★ LIAN LI PC-O11 DYNAMIC XL ROG (BLACK) (G99.O11DXL-X)
    ★ Monitor ★ LG Ultragear 27" 240Hz Gaming Monitor
    ★ Keyboard ★ TVS Electronics Gold Keyboard
    ★ Mouse ★ Logitech G502 Hero

  3. #3

    Thread Starter
    Hyperactive Member pgag45's Avatar
    Join Date
    Mar 2007
    Location
    Colorado
    Posts
    262

    Re: Not allow users to delete a sheet

    hrmm.. simple enough!

    Thanks a lot sid

  4. #4
    Addicted Member
    Join Date
    Jan 2007
    Location
    England
    Posts
    234

    Re: [RESOLVED] Not allow users to delete a sheet

    would userinterface apply to the protection of the workbook, like is does with sheets?

Posting Permissions

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



Click Here to Expand Forum to Full Width