I need to modify the following code to look up this file with a wildcard for the date, and if it exists, then open the ppt. Nothing that I have tried has worked.
Sub PlantFileExists()
Dim find
Dim file As String
file = "J:\ESD\Reports\Data\Plant\PlantPowerPoint10022008.ppt"
Set find = CreateObject("Scripting.FileSystemObject")
If Not find.FileExists(file) Then
MsgBox file & " was not located.", vbInformation, "File Not Found"
Else
MsgBox file & " has been located.", vbInformation, "File Found"
Presentations.Open FileName:="J:\ESD\Reports\Data\Plant\PlantPowerPoint10022008.ppt", ReadOnly:=msoFalse
End If
End Sub
Any help is always greatly appreciated!!!
...And worth a pretty star!
Thanks,
Chilly442
Sub PlantFileExists()
Dim find
Dim file As String
file = "J:\ESD\Reports\Data\Plant\PlantPowerPoint10022008.ppt"
Set find = CreateObject("Scripting.FileSystemObject")
If Not find.FileExists(file) Then
MsgBox file & " was not located.", vbInformation, "File Not Found"
Else
MsgBox file & " has been located.", vbInformation, "File Found"
Presentations.Open FileName:="J:\ESD\Reports\Data\Plant\PlantPowerPoint10022008.ppt", ReadOnly:=msoFalse
End If
End Sub
Any help is always greatly appreciated!!!
...And worth a pretty star!
Thanks,
Chilly442