Thanks for your replays.
Why are you using this [iColor] here?
Sorry my mistake, I wanted to color something in my code in this post, but then I have changed my mind and have forgotten to delete it. Of course I do not have this in my Excel VBA code.
so where do you define it?
Again my fault I have forgotten to give you this information.
I have defined variables in ThisWorkbook - Workbook - Open as follows:
And I have also in my module under General - Declarations
Public template As String
Public folder As String
Public source As String
Public where As String
Public name As String
Option Explicit
Hope I have made my mind clearer now.
Regards,
Patryk
Bookmarks