Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Save temporary excel file.

Status
Not open for further replies.

Happy2day

Programmer
Aug 31, 2005
6
US
How can I save temporary excel file which is exported from application.
Can you please help me ?

Thanks.
Uma
 
How can we know how to answer this question?
What do you mean by exported?
If it is a temporary excel file then it is probably saved somewhere already.
What application?

[red]"... isn't sanity really just a one trick pony anyway?! I mean, all you get is one trick, rational thinking, but when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick[/red]
 
Hi ! Thanks for reply.
Application is player tracking.
The excel file is saved as Book1.xls(regular expression :Book*.xls).
filepath is My Documents\Book1.xls

How can I save copy of this file in the network path?


Thanks in Advance
Uma
 
Hi PH , Thanks for reply.I finally have found the solution.

***************Start VBScript**********************
Dim fso
Set fso = CreateObject("Scripting.FileSystemObject")
file1="C:\Documents and Settings\"&username&"\My Documents\book3.xls"
file2= "C:\viewcreditdetail.xls"
fso.CopyFile file1,file2
fso.DeleteFile(file1)
***************End VBScript**********************
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top