I am trying to start the following function
Function MitteOben(Bereich As Range)
With Bereich
.VerticalAlignment = xlTop
.HorizontalAlignment = xlCenter
End With
With Bereich.Font
.Name = "Tahoma"
.Size = 10
.ThemeColor = xlThemeColorLight1
End With
End Function
When I try to define a range and start the function it creates Runtime Error 424.
I am trying to start it this way:
Set Hlpr = Range(Cells(ObjStartRow, 14), Cells(ObjStartRow, 28))
MitteOben (Hlpr)
Fett (Hlpr)
I have also tried to Swap "ObjStartRow" with a number or Change the whole range to: Range("N29:AC29") both have failed.