70. VLOOKUP
ss:ExpandedRowCount
"21"
"<!--#4dtext Records in selection([Product])+1-->"
"<!--#4dtext Records in selection([Inventory])+1-->"
<Created>
<LastSaved>
2013-06-28T08:02:22Z
<!--#4dhtml string(Current date;ISO Date GMT;Current time)-->
74. AppleScript
tell application "Microsoft Excel"
!
! launch
!
! tell application "System Events"
! ! set visible of processes whose name is "Microsoft Excel" to true
! end tell
!
! set screen updating to false
! set display alerts to false
!
! set theXmlPath to argument("XML_DOCUMENT_PATH") of parameters
! set theXlsPath to argument("XLS_DOCUMENT_PATH") of parameters
!
! set theBooks to every workbook
!
! repeat with theBook in theBooks
! ! if name of theBook is theXlsPath then close theBook saving no
! ! if full name of theBook is theXlsPath then close theBook saving no
! end repeat
!
! set theWorkbook to open workbook workbook file name theXmlPath
!
! save workbook as theWorkbook file format Excel98to2004 file format filename
theXlsPath with overwrite
!
! set screen updating to true
!
! activate
!
end tell
75. AppleScript
tell application "Microsoft Excel"
!
! launch
!
! tell application "System Events"
! ! set visible of processes whose name is "Microsoft Excel" to true
! end tell
!
! set screen updating to false
! set display alerts to false
!
! set theXmlPath to argument("XML_DOCUMENT_PATH") of parameters
! set theXlsPath to argument("XLS_DOCUMENT_PATH") of parameters
!
! set theBooks to every workbook
!
! repeat with theBook in theBooks
! ! if name of theBook is theXlsPath then close theBook saving no
! ! if full name of theBook is theXlsPath then close theBook saving no
! end repeat
!
! set theWorkbook to open workbook workbook file name theXmlPath
!
! save workbook as theWorkbook file format Excel98to2004 file format filename
theXlsPath with overwrite
!
! set screen updating to true
!
! activate
!
end tell
76. VBScript
Set objExcelApplication!= GETAPP("Excel.Application")
theXmlPath = GETENV("XML_DOCUMENT_PATH")
theXlsPath = GETENV("XLS_DOCUMENT_PATH")
objExcelApplication.Visible = True
objExcelApplication.ScreenUpdating = False
objExcelApplication.DisplayAlerts = False
Set theWorkbooks = objExcelApplication.Workbooks
For Each theWorkbook In theWorkbooks
! If (theWorkbook.FullName = theXlsPath) Or (theWorkbook.Name = theXlsPath) Then
! ! theWorkbook.Close (False)
! End If
Next
Set theWorkbook = objExcelApplication.Workbooks.Open(theXmlPath)
theWorkbook.SaveAs theXlsPath, 56
objExcelApplication.ScreenUpdating = True
CreateObject("WScript.Shell").AppActivate objExcelApplication.Caption
77. VBScript
Set objExcelApplication!= GETAPP("Excel.Application")
theXmlPath = GETENV("XML_DOCUMENT_PATH")
theXlsPath = GETENV("XLS_DOCUMENT_PATH")
objExcelApplication.Visible = True
objExcelApplication.ScreenUpdating = False
objExcelApplication.DisplayAlerts = False
Set theWorkbooks = objExcelApplication.Workbooks
For Each theWorkbook In theWorkbooks
! If (theWorkbook.FullName = theXlsPath) Or (theWorkbook.Name = theXlsPath) Then
! ! theWorkbook.Close (False)
! End If
Next
Set theWorkbook = objExcelApplication.Workbooks.Open(theXmlPath)
theWorkbook.SaveAs theXlsPath, 56
objExcelApplication.ScreenUpdating = True
CreateObject("WScript.Shell").AppActivate objExcelApplication.Caption