I am tring to move a file from one folder to the next and I know what the file is I just cant get the code to work. Mis match error. Thanks for any lioght on this
temp = getLastTIF("\\192.168.0.101\_file cabnet\temp\")
obj = Right(temp, Len(temp) - InStrRev(temp, "\"))
FilePath = "\\192.168.0.101\_file cabnet\" & Right(temp, Len(temp) - InStrRev(temp, "\"))
Set Object = obj
Object.MoveFile("\\192.168.0.101\_file cabnet\temp\", "\\192.168.0.101\_file cabnet\") = 1
temp = getLastTIF("\\192.168.0.101\_file cabnet\temp\")
obj = Right(temp, Len(temp) - InStrRev(temp, "\"))
FilePath = "\\192.168.0.101\_file cabnet\" & Right(temp, Len(temp) - InStrRev(temp, "\"))
Set Object = obj
Object.MoveFile("\\192.168.0.101\_file cabnet\temp\", "\\192.168.0.101\_file cabnet\") = 1