Runtime Error nach Umstellung auf 2003
06.10.2005 09:40:35
Alois
ich wende seit langem das beigefügte Makro ohne Probleme an (Excel 2000). Nach der Umstellung eines Rechners auf 2003 steigt die Ausführung in der ersten Zeile mit Fehler 1004 aus?
Was ist jetzt falsch?
Private Sub CommandButton1_Click()
ActiveWindow.SelectedSheets.PrintOut From:=1, To:=1, Copies:=1
ActiveSheet.Protect userinterfaceonly:=True
Application.Goto Reference:="R48C10"
Selection.Locked = False
With Selection.Font
.Name = "Tahoma"
.FontStyle = "Fett"
.Size = 10
.Strikethrough = False
.Superscript = False
.Subscript = False
.OutlineFont = False
.Shadow = False
.Underline = xlUnderlineStyleNone
.ColorIndex = 2
End With
With Selection.Interior
.ColorIndex = 5
.Pattern = xlSolid
.PatternColorIndex = xlAutomatic
End With
With Selection
.HorizontalAlignment = xlCenter
.VerticalAlignment = xlBottom
.WrapText = False
.Orientation = 0
.AddIndent = False
.ShrinkToFit = False
.MergeCells = False
End With
Selection.Locked = True
ActiveCell.FormulaR1C1 = "gedruckt"
Range("J48").Select
End Sub
Vielen Dank für die Hilfe.
Alois
Anzeige