I use this code in Access to draw a timeline and freeze panes in Excel - so the commands are for the Excel enviroment - that's why I'm asking here.
Sometimes it runs into error 1004 in the marked line:
Private Sub bygTidslinien(st As Integer, d As Boolean)
Dim xlApp As Object
Dim wb As...