Hi
I have saved a directory location in a cell in a worksheet. In my macro I want to retrieve the directory and change to that directory. I have used the following simple code:
Sub TestingChDir()
Dim sDirectory As String
sDirectory = Worksheets("Assumptions").Range("J17")
MsgBox "sDirectory " & sDirectory
ChDir sDirectory
End Sub
I get the following error 76:
Can someone please help me with this?
Many thanks
I have saved a directory location in a cell in a worksheet. In my macro I want to retrieve the directory and change to that directory. I have used the following simple code:
Sub TestingChDir()
Dim sDirectory As String
sDirectory = Worksheets("Assumptions").Range("J17")
MsgBox "sDirectory " & sDirectory
ChDir sDirectory
End Sub
I get the following error 76:
Can someone please help me with this?
Many thanks