Hello 06035,
The error is most likely occurring in the beginning of your code with ChDir statement. Your path variable Folder hasn't been assigned a path.
Sincerely,
Leith Ross
Hello 06035,
The error is most likely occurring in the beginning of your code with ChDir statement. Your path variable Folder hasn't been assigned a path.
Sincerely,
Leith Ross
Thanks for your replays.
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.Why are you using this [iColor] here?
Again my fault I have forgotten to give you this information.so where do you define it?
I have defined variables in ThisWorkbook - Workbook - Open as follows:
And I have also in my module under General - Declarations![]()
Private Sub Workbook_Open() template = Worksheets("Info").Cells(1, 12).Value folder = Worksheets("Info").Cells(2, 12).Value source = Worksheets("Info").Cells(3, 12).Value End sub
Hope I have made my mind clearer now.Public template As String
Public folder As String
Public source As String
Public where As String
Public name As String
Option Explicit
Regards,
Patryk
Wecan't see what the values you are assigning are, maybe you should zip & attach the workbook.
Hope that helps.
RoyUK
--------
For Excel Tips & Solutions, free examples and tutorials why not check out my web site
Free DataBaseForm example
Please find attached file. Let me know if the source file will be useful.maybe you should zip & attach the workbook.
Regards,
Patryk
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks