G
Guest
I have the following code, which I think is the culprit causing a "Bad
Filename" message box to pop up when I run code attached to a button.
Dim OtherFile As String
Dim PrepFolder As String
Dim ProcessedFolder As String
Dim OtherFolder As String
PrepFolder = """" & "x:\cs\nhr\name.xls" & """"
ProcessedFolder = """" & "x:\cs\nhr\PROCESSED\" & """"
OtherFolder = """" & "x:\cs\nhr\OTHER RECEIVED\" & """"
...........................
......some code.....
...........................
' culprit (?) below
NAME OtherFolder & OtherFile As ProcessedFolder & OtherFile
' Move the file once you're done with it
The debugger doesn't show this as an error and I've tested almost every
other option. Should I just go with a Copy and then Delete set of commands?
Thanks in advance for any pointers.
Filename" message box to pop up when I run code attached to a button.
Dim OtherFile As String
Dim PrepFolder As String
Dim ProcessedFolder As String
Dim OtherFolder As String
PrepFolder = """" & "x:\cs\nhr\name.xls" & """"
ProcessedFolder = """" & "x:\cs\nhr\PROCESSED\" & """"
OtherFolder = """" & "x:\cs\nhr\OTHER RECEIVED\" & """"
...........................
......some code.....
...........................
' culprit (?) below
NAME OtherFolder & OtherFile As ProcessedFolder & OtherFile
' Move the file once you're done with it
The debugger doesn't show this as an error and I've tested almost every
other option. Should I just go with a Copy and then Delete set of commands?
Thanks in advance for any pointers.