Fallenwing
Programmer
I have the following code. In my opinion after I select the ChDir the file should be saved to that directory, on the network in our v:\. I looked for these files but they did not show up there. To my surprise I found them hiding out in C:\WINNT\Personal. Why are they going there?
Sub LifeSaver()
'
' LifeSaver Macro
' Macro recorded 25/08/2003 by Adam Kroeker
'
' Choosing the PO Name
' If PO Name Is Specialty ie. Cornie 09
If Range("PoName"
.Value > 1000000 Then
President = Range("PoName"
.Value
' If PO Name Is Mcleod or Vidir PO #
Else: President = Range("PoName"
.Value & " " & Range("Supplier"
.Value
End If
' Directory to Go To
If Range("Machine"
.Value = "Mill" Then ChDir "v:\stock\po receiving\mill file"
If Range("Machine"
.Value = "Harvester" Then ChDir "v:\stock\po receiving\harvester file"
ActiveWorkbook.SaveAs (President)
MsgBox ("File Saved As" & " " & President)
'
End Sub
Sub LifeSaver()
'
' LifeSaver Macro
' Macro recorded 25/08/2003 by Adam Kroeker
'
' Choosing the PO Name
' If PO Name Is Specialty ie. Cornie 09
If Range("PoName"
President = Range("PoName"
' If PO Name Is Mcleod or Vidir PO #
Else: President = Range("PoName"
End If
' Directory to Go To
If Range("Machine"
If Range("Machine"
ActiveWorkbook.SaveAs (President)
MsgBox ("File Saved As" & " " & President)
'
End Sub