wieder einmal benötige ich Eure Hilfe.
Folgendes Problem:
...
Betrieb_Laufzeit_Wochentag = Betrieb_Start_Wochentag & "_bis_" & Betrieb_Ende_Wochentag
ZEI_Test = 7
SPL_Test = 6
...
Mo_bis_Mo = Array(1, 0, 0, 0, 0, 0, 0)
Mo_bis_Di = Array(1, 2, 0, 0, 0, 0, 0)
Mo_bis_Mi = Array(1, 2, 3, 0, 0, 0, 0)
...
For Zae_Wochentag = 0 To 6
!! 1) Wochentag_aktuell = Betrieb_Laufzeit_Wochentag(Zae_Wochentag)
!! 2) 'Wochentag_aktuell = Mo_bis_Mo(Zae_Wochentag)
Workbooks(ABM_1).Worksheets(ABB_1).Cells(ZEI_Test + Zae_Wochentag, SPL_Test) = Wochentag_aktuell
Next Zae_Wochentag
Die FOR Schleife funktioniert mit Zeile !! 2) einwandfrei. Mit Zeile !! 1) leider nicht, obwohl Betrieb_Laufzeit_Wochentag="Mo_bis_Mo" angezeigt wird.
Hat jemand eine Idee?
Danke schonmal im voraus.
Henrik