Public Sub Vorlage()
Sheets("Vorlage").Visible = True
Dim strName As String
strName = InputBox("Familie eingeben", "Eingabe", "Familiennamen")
If strName = "" Then Exit Sub
ThisWorkbook.Worksheets("Vorlage").Copy After:=ThisWorkbook.Sheets(Sheets.Count)
ActiveSheet.Name = strName
Sheets("Vorlage").Visible = False
End Sub
For Each Ding In ActiveWorkbook.VBProject.vbcomponentsSub VBA_Code_entfernen()
Dim Ding As Object
Dim Zeile As Long
Dim Antwort As Integer
For Each Ding In ActiveWorkbook.VBProject.vbcomponents
'Type 100 = DieseArbeitsmappe und alle Tabellen
If Ding.Type = 100 Then
With ActiveWorkbook.VBProject.vbcomponents(Ding.Name).CodeModule
For Zeile = 1 To .CountOfLines
.DeleteLines 1
Next Zeile
End With
'Type 1 = Modul, Type 2 = Klassenmodul, Type 3 = UserForm
Else
ActiveWorkbook.VBProject.vbcomponents.Remove Ding
End If
Next
End SubFunction VerzeichnisExists(StrPfad As String) As Boolean
On Error Resume Next
ChDir StrPfad
If Err = 0 Then VerzeichnisExists = True
End Function Declare Function MakeSureDirectoryPathExists Lib "imagehlp.dll" (ByVal DirPath As String) As LongMakeSureDirectoryPathExists ("C:\TempTest\")
Formel in Excel (Wert soll gleichbleiben)
mel1980 23.06.2009 - 417 Hits - 3 Antworten
Excel Termine an Outlook
JCool666 08.10.2009 - 518 Hits - 5 Antworten
Zellen auslesen
Aggi11 07.10.2009 - 289 Hits - 8 Antworten
Eingabe in Zelle aufspalten
Ulle-gt5 07.10.2009 - 299 Hits - 9 Antworten