Excel mit VBA
Tabellenblätter sicher verstecken bzw. unsichtbar machen.
'Mit diesem Code können die Tabellenblätter 2 bis 5
'so versteckt werden, dass ein Nutzer ohne in den VBA-Code
'zu kommen diese nicht wieder einblenden kann.
'Im Excel unter Format/Blatt/Einblenden sind
'die so ausgeblendeten Blätter nicht zu finden.
Private Sub Blaetter_ausblenden()
Dim i
For i = 2 To 5 Step 1
Worksheets(i).Visible = xlVeryHidden
Next i
End Sub
Private Sub Blaetter_einblenden()
Dim i
For i = 2 To 5 Step 1
Worksheets(i).Visible = True
Next i
End Sub
Tags: -
Verwandte Artikel:
- Tabellenblätter mit Tagesdatum aufsteigend automatisch erstellen
- Wie kann ich auf Knopfdruck (Button) andere Schaltflächen auf der Formularfläche ins transparente verschwinden lassen und andere Schaltflächen vom transparenten sichtbar machen?
- Tastenkombination für Werte einfügen
Letzte Änderung des Artikels: 2006-08-05 14:26
Verfasser des Artikels: Thomas Mrozek
Revision: 1.0
Kommentieren von diesen Artikel nicht möglich
Kommentar von jkqAlxDD:
Rating I went through this book in a few weeks time. It's a great help for anoyne looking to start in VBA for Excel 2007. The projects/examples were very helpful and I've used the ideas to expand on my own to help create some pretty IMO nifty little helpers to my excel sheets. There are surely many other books out there that claim to be good at this or that, but the dummy series puts a special spin on the way they present it that in no way makes you feel like a Dummy . I recommend this book to anoyne starting out or for a semi experienced used who may just want a different perspective on the way to do things in VBA/Excel.
Added at: 2012-10-26 08:29