Closed Thread
Results 1 to 3 of 3

Zellen sollen nach eingabe und schließen gesperrt werden

  1. #1
    Registered User
    Join Date
    01-19-2015
    Location
    deutschland
    MS-Off Ver
    2003
    Posts
    7

    Zellen sollen nach eingabe und schließen gesperrt werden

    Nabend,

    habe ein Makro in einer Exceltabelle:

    Private Sub Workbook_BeforeClose(Cancel As Boolean)
    Dim Merker As Boolean
    dim SH as Worksheet
    Merker = Me.Saved
    for each SH in Thisworkbook.Worksheets
    SH.Unprotect "DeinPasswort"
    SH.Usedrange.Locked = True
    On Error Resume Next
    SH.UsedRange.SpecialCells(xlCellTypeBlanks).Locked = False
    On Error Goto 0
    SH.Protect "DeinPasswort"
    Next
    If Merker Then Me.Save

    End Sub

    der sperrt nach schließen alle Zellen.Ich möchte aber gerne das der das nur in Spalte A-I macht, sodass ich den rest immer bearbeiten kann.
    Was und wo muss ich etwas verändern?

    Danke für eure Hilfe

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,448

    Re: Zellen sollen nach eingabe und schließen gesperrt werden

    Welcome to the Forum, unfortunately:

    This is a duplicate post and as such does not comply with Rule 5 of our forum rules. This thread will now be closed, you may continue in your other thread.

    Thread Closed.

    http://www.excelforum.com/excel-prog...rt-werden.html

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: Zellen sollen nach eingabe und schließen gesperrt werden

    Welcome to the Forum, unfortunately:

    This is a duplicate post and as such does not comply with Rule 5 of our forum rules. This thread will now be closed, you may continue in your other thread.

    Thread Closed.

    http://www.excelforum.com/excel-prog...rt-werden.html
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Zellen sollen nach eingabe und schließen gesperrt werden
    By t.r.i.b.a.l in forum Non English Excel
    Replies: 10
    Last Post: 01-25-2015, 06:42 PM
  2. Replies: 3
    Last Post: 04-07-2014, 04:23 AM
  3. Replies: 0
    Last Post: 04-07-2014, 03:55 AM
  4. ActiveX Radio Buttons in Tabelle werden durch anklicken immer kleiner.
    By Martin Stalder in forum Non English Excel
    Replies: 0
    Last Post: 02-18-2012, 11:02 AM
  5. [SOLVED] Tabstopps in Exel-Zellen
    By adil in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 02-07-2006, 11:10 AM

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