Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Draging a file from one folder and droping it onto the exe in another folder
#4
Solved: 10 Years, 9 Months, 3 Weeks ago
My suggestion is Open the C:\Newfolder excel sheet and save it in the location of D:\Newfolder then delete the file in c:\Newfolder.

Code:
set ExcelObj = CreateObject("Excel.Application")
set oBook = ExcelObj.Workbooks.Open("C:\Newfolder.xls")
ExcelObj.Application.Visible = True
Excelobj.ActiveWorkbook.saveas "D:\newfolder.xls"
Excelobj.quit

next delete the c folder workbook
Reply


Messages In This Thread
RE: Draging a file from one folder and droping it onto the exe in another folder - by freeboynil - 09-11-2012, 08:05 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Executing via create "RES"xx folder? nishitd 0 1,127 03-07-2018, 01:09 AM
Last Post: nishitd
  code for validation to create a sub folder smiley 0 1,440 10-19-2016, 10:08 PM
Last Post: smiley
  Extract and save a file from zip folder using VB Script karthicksri07 1 6,210 06-29-2016, 02:19 PM
Last Post: Ankesh
  [UFT] Close opened folder robertosalemi 1 3,167 02-10-2016, 07:06 PM
Last Post: robertosalemi
  Exe invoked through UFT is unable to access IIS and SQL Server service bkdevise 0 1,985 08-25-2015, 05:49 PM
Last Post: bkdevise

Forum Jump:


Users browsing this thread: 1 Guest(s)