Hi, Ken! Thanks and sorry for the delay. Yes. We have rights to C. Everything works perfectly. Except the error AFTER it saves the file. I'm saving as XLS extension. Don't care whether there's code in the file or not or what the *actual* file type is.
Very weird.
Code:
Sub SaveToC()
Application.DisplayAlerts = False
If Len(Dir("C:\Users\", vbDirectory)) = 0 Then
ThisWorkbook.SaveAs "C:\FLImport" & ".xls", FileFormat:= _
xlExcel8, Password:="", WriteResPassword:="", ReadOnlyRecommended:=False _
, CreateBackup:=False
ActiveWorkbook.Close False
Else: MsgBox ("No Way!" & Chr(13) & "You are not on a virtual machine." & Chr(13) & Chr(13) & "Para nada!" & Chr(13) & "Tu no estas en una maquina virtual."), vbOKOnly
End If
Application.DisplayAlerts = False
End Sub
Hoping this forum takes code tags.
Bookmarks