hi,
For archiving my sheets I want to create a date-Directory.
I have a problem to load a pathSTring to a variable and create with that variable a new directory.
I would be happy about a help.
regards,
Matthias
> 'ddir=z.B.:23.12.2005
>
> ' MsgBox "THe old date diractory is " & adir & ""
> 'reading the old directory
> adir = Range("S6")
b = CheckPath(adir)
> If b = True Then
> ' MsgBox "Does the directory " & adir & " exist?!"
> 'MsgBox "THe old is the same as the new!"
> ChDir adir
>
> Else
> 'MsgBox "THe directory " & adir & " does not exist!a new one will be created"
> MkDir adir
ChDir adir
> 'Saving the new date directory in the config-table
>
> Windows("test.xls").Activate
> Sheets("config-table").Select
> Range("S6").Value = " " & adir & " "
> ActiveWorkbook.Save
>
> End If
For archiving my sheets I want to create a date-Directory.
I have a problem to load a pathSTring to a variable and create with that variable a new directory.
I would be happy about a help.
regards,
Matthias
> 'ddir=z.B.:23.12.2005
>
> ' MsgBox "THe old date diractory is " & adir & ""
> 'reading the old directory
> adir = Range("S6")
b = CheckPath(adir)
> If b = True Then
> ' MsgBox "Does the directory " & adir & " exist?!"
> 'MsgBox "THe old is the same as the new!"
> ChDir adir
>
> Else
> 'MsgBox "THe directory " & adir & " does not exist!a new one will be created"
> MkDir adir
ChDir adir
> 'Saving the new date directory in the config-table
>
> Windows("test.xls").Activate
> Sheets("config-table").Select
> Range("S6").Value = " " & adir & " "
> ActiveWorkbook.Save
>
> End If