VB-Script = Basic?
Posted: Thu Jul 17, 2014 2:15 pm
I have a VB-Script running from a CMD file now.
The CMD file get started by Robotask.
Can my script be integrated into the Basic Plugin?
> Internal / External Task Script
With Copy / Paste the code does not work.
The CMD file get started by Robotask.
Can my script be integrated into the Basic Plugin?
> Internal / External Task Script
With Copy / Paste the code does not work.
Code: Select all
Set xl = CreateObject("Excel.Application")
xl.Visible = False 'set to False for production
xl.Workbooks.Open("C:\blp\API\Office Tools\BloombergUI.xla")
Set wb = xl.Workbooks.Open(WScript.Arguments(0))
wscript.sleep 45000
wb.ActiveSheet.UsedRange.Value = wb.ActiveSheet.UsedRange.Value
wb.Save
wb.Close
xl.Quit