I am receiving the Run-time error '52' bad file name or number error, however all of the questions which cover this on stackoverflow that I can see have answers which involve changing the code. The problem with this is that the code uses a directory in a network drive, and the error doesn't occur on other computers on the network.
It is perhaps worth noting that my computer until recently did not have an activated version of windows due to a complication, however I assumed that to be the cause of the error but it is still occurring after activation.
I have no experience with Microsoft Visual Basic and did not write the code so if you need any more information just ask.
Private Sub Command1769_Click()
Me.Refresh
If Len(Dir("file location" &
[Combo1199], vbDirectory)) = 0 Then
MkDir "file location" &
[Combo1199]
End If
I have replaced the name of the file location with 'file location' however I have checked and it is correct. The [Combo1199] is the name of a folder which is already present in the directory, and its date modified shows as being when the VBA code was run. The debug shows the problem as occurring on the If Len(... line
EDIT SOLVED: For some reason the DNS servers weren't set to be found automatically so I wasn't connected to the applicable license server.