Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


close excel file after reading reg key

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,48487
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> close excel file after reading reg key
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 close excel file after reading reg key - 6/19/2007 6:53:40 AM   
  ekrengel

 

Posts: 28
Score: 0
Joined: 5/11/2007
Status: offline
Does anyone know how to make this excel file close after it has opened and put the values inside?  Right now I have to manually close excel, and then it continues the rest of the script...

rval = WshShell.Run(chr(34) & strKeyValue & "excel.exe" & chr(34) & " " & chr(34) & strFile & chr(34) ,1,True)
 
 
Post #: 1
 
 RE: close excel file after reading reg key - 6/19/2007 7:09:40 AM   
  LANlazy

 

Posts: 82
Score: 0
Joined: 4/11/2007
Status: offline
can you post the entire script?

(in reply to ekrengel)
 
 
Post #: 2
 
 RE: close excel file after reading reg key - 6/19/2007 7:15:21 AM   
  ekrengel

 

Posts: 28
Score: 0
Joined: 5/11/2007
Status: offline
Ok...It's pretty long, but here it is:


      

(in reply to LANlazy)
 
 
Post #: 3
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> close excel file after reading reg key Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts