Hi, esbenhaugaard,
let´s start with a more general remark. You dimmed
Except f1 (Single), Rng (Range), oCell (Range), and LR (Long) all other variables on that line are of type Variant. It´s no great point but I like to know of which Type my Variables are, and I like them to give me a hint on which object they will be needed (I can figure that out for Rng, oCel and LR but not for the rest).
Later on in the code you set x to the Monthname of the actual date
You could use the Format-Command for that as well:
Okay, the computer I work on doesn´t have a drive D so a lot of errors came up in the next part regarding the pictures so I commented a lot of that code.
Setting the Date on Sheet Karrusel:
Why is there an advantage by using xlsheetVisible?
True and False combine for 2 states but using the constants gives you a third one which can only be made visible via VBA-Code or from the VBE. That´s just a matter of taste.
Sorry for my late answer as I have started this post a very long time ago before you actually have found the error yourself (it´s a lot of code to look at ).
Ciao,
Holger
Bookmarks