Anzeige
Anzeige
HERBERS
Excel-Forum (Archiv)
20+ Jahre Excel-Kompetenz: Von Anwendern, für Anwender
Inhaltsverzeichnis

sheet protection

Forumthread: sheet protection

sheet protection
26.02.2003 16:11:54
Henrik Meier Jørgensen
Hallo my name is Henrik from Denmark
I read talk and understand German but im not good at writing it...
In a Excel VBA project I want to set protection with password "hmj" to a sheet named "Home" from a Form in the same project how can I do that ?
Hope you can help me ! you can ansver in German....

Anzeige

2
Beiträge zum Forumthread
Beiträge zu diesem Forumthread

Betreff
Datum
Anwender
Anzeige
Re: sheet protection
26.02.2003 16:24:51
Jürgen

Hallo Henrik,

vielleicht geht es so:

Sheets("Home").Protect "hmj" 'Blattschutz setzen
Sheets("Home").Unprotect "hmj" 'Blattschutz aufheben

Gruß
Jürgen

Re: sheet protection
26.02.2003 16:26:47
Felix

Hi henrik,

here is the code for Excel

here you protect the active sheet:
ActiveSheet.Protect Password:="hmj"

and here you cancel the protect in the active sheet:
ActiveSheet.unProtect Password:="hmj"

I hope I could help you.

Felix


Anzeige
;

Beliebteste Forumthreads (12 Monate)

Anzeige
Anzeige
Entdecke mehr
Finde genau, was du suchst

Die erweiterte Suchfunktion hilft dir, gezielt die besten Antworten zu finden

Suche nach den besten Antworten
Unsere beliebtesten Threads

Entdecke unsere meistgeklickten Beiträge in der Google Suche

Top 100 Threads jetzt ansehen
Anzeige