Hallo,
dieses Makro ändert Text im Arbeitsblatt in Großschrift. Kann mir jemand es so umschreiben, das es z.Bsp. nur Blatt 1,Zelle B2 bearbeitet?
http://www.file-upload.net/download-3001125/Vorlage2…
Danke für die Hilfe im Voraus.
Heimat
Option Explicit
’
Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)
Dim Zelle As Range
On Error GoTo hell
If Target.Value = „“ Then Exit Sub
If Target.HasFormula Then Exit Sub
Application.EnableEvents = False
For Each Zelle In Target
Zelle.Value = Application.Proper(Zelle.Value)
Next Zelle
hell:
Application.EnableEvents = True
End Sub
dieses Makro ändert Text im Arbeitsblatt in Großschrift. Kann
mir jemand es so umschreiben, das es z.Bsp. nur Blatt 1,Zelle
B2 bearbeitet?
http://www.file-upload.net/download-3001125/Vorlage2…
Hallo Heimat,
Private Sub Workbook\_SheetChange(ByVal Sh As Object, ByVal Target As Range)
On Error GoTo hell
If Sh.Name "Tabelle1" Then Exit Sub
If Target.Value = "" Or Target.Address(0, 0) "B2" Then Exit Sub
If Target.HasFormula Then Exit Sub
Application.EnableEvents = False
Target.Value = Application.Proper(Target.Value)
hell:
Application.EnableEvents = True
End Sub
Gruß
Reinhard
Hallo Reinhard,
funktioniert leider bei mir nicht.
Grüße Heimat
funktioniert leider bei mir nicht.
Hallo Heimat,
du gibst mir echt Rätsel auf 
Ich gebe in B2 von Blatt1 einen Text ein und das Makro funktioniert.
Warum bei dir nicht ist mir schleierhaft.
Baue mal in den Code diese Zeile ein, egal wo
MsgBox „huhu“
dann gib mal in B2 einen Text ein.
Kommt ein Fensterchen mit „huhu“?
Wenn nicht hast du die makros deaktiviert usw.
Gruß
Reinhard
Hallo Reinhard,
du hast mit deiner Vermutung natürlich richtig gelegen.
Makros waren deaktiviert. Vielen Dank für Deine Ausdauer.
Das Makro funktioniert perfekt.
Vielen Dank noch einmal.
Grüße Heimat
OT Gesundheitsvorsorge/fürsorge
du hast mit deiner Vermutung natürlich richtig gelegen.
Makros waren deaktiviert. Vielen Dank für Deine Ausdauer.
Das Makro funktioniert perfekt.
Vielen Dank noch einmal.
Hallo Heimat,
das freut mich.
Mit Stauballergie ist nicht zu spaßen.
Auf dem Button „Diesem Artikel ein Sternchen geben“ muß ja bei dir schon eine dicke Staubschicht sein *hust* *grins*
Gruß
Reinhard