Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
If an Excel spreadsheet is not found then...
#2
Solved: 11 Years, 3 Months, 4 Weeks ago
Hi,
U can use FSO, it will help u out.

Code:
Set fso=CreateObject("Scripting.FileSystemObject")
If (fso.FileExists(file_location)) Then
    'do something
    else
    'do something    
End If
file_location---> complete path for ur file to open/read

Regards,
Sankalp
Reply


Messages In This Thread
RE: If an Excel spreadsheet is not found then... - by sshukla12 - 03-16-2012, 10:02 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Object not found during the 2nd iteration of an Action call in a For loop BGunay 0 973 04-23-2020, 07:08 PM
Last Post: BGunay
  Invalid File error importing a spreadsheet but only on a VM msacks 1 2,752 10-19-2014, 09:04 PM
Last Post: supputuri
  How to make QTP take the value of a formula in a spreadsheet? utestqa 1 3,133 07-06-2013, 04:13 PM
Last Post: Ankur
  If Text found mv8167 3 2,792 09-25-2012, 11:24 PM
Last Post: parminderdhiman84
Wink Element not found - VbWindow edj1 4 4,996 02-29-2012, 12:00 AM
Last Post: edj1

Forum Jump:


Users browsing this thread: 2 Guest(s)