Hi Guys,
Well I'm bumbling along with my vba and have had some success (mainly due to the patience and indulgance of fellow members
). However I have a hit a problem with the Dir function, I know I must be wrong but I would really appreciate somebody showing me the error of my ways.
I'm getting a type mismatch run-time error 13....can anyone explain what's wrong with my code?
Cheers,
Tommy B
Public sub test()
Dim retval
If Dir("C:\leads_folder\daily_declines\dailydone.txt") Then
Kill ("C:\leads_folder\daily_declines\dailydone.txt")
retval = shell("c:\leads_folder\daily_declines\dailyconversion(tom).bat", vbMinimizedFocus)
While Not Dir("C:\leads_folder\daily_declines\dailydone.txt", vbNormal)
Wend
End If
End Sub
Well I'm bumbling along with my vba and have had some success (mainly due to the patience and indulgance of fellow members
I'm getting a type mismatch run-time error 13....can anyone explain what's wrong with my code?
Cheers,
Tommy B
Public sub test()
Dim retval
If Dir("C:\leads_folder\daily_declines\dailydone.txt") Then
Kill ("C:\leads_folder\daily_declines\dailydone.txt")
retval = shell("c:\leads_folder\daily_declines\dailyconversion(tom).bat", vbMinimizedFocus)
While Not Dir("C:\leads_folder\daily_declines\dailydone.txt", vbNormal)
Wend
End If
End Sub