I have the following script I use to open and excel spreadsheet from within Mas90. The client has now asked if I can only open specific tabs (Sheets) like 3 to 5.
Is this possible? Thank you in advance.
Dim fs
Dim ss
Set fs = CreateObject("Scripting.FileSystemObject")
If fs.FileExists("C:\\" & ML_UDF_SOH_SPREADSHEET & ".xls") Then
Set ss = CreateObject("WScript.Shell")
Set objSheet = objExcel.ActiveWorkbook.Worksheets(SHEET3)
ss.run "C:\\" & ML_UDF_SOH_SPREADSHEET & ".xls"
Set ss = nothing
Else MsgBox"NO SPREADSHEET EXISTS FOR " & ML_UDF_SOH_SPREADSHEET & ".XLS",0, "MAS 90 ORDER SPREADSHEET"
End If
Set fs = nothing
Is this possible? Thank you in advance.
Dim fs
Dim ss
Set fs = CreateObject("Scripting.FileSystemObject")
If fs.FileExists("C:\\" & ML_UDF_SOH_SPREADSHEET & ".xls") Then
Set ss = CreateObject("WScript.Shell")
Set objSheet = objExcel.ActiveWorkbook.Worksheets(SHEET3)
ss.run "C:\\" & ML_UDF_SOH_SPREADSHEET & ".xls"
Set ss = nothing
Else MsgBox"NO SPREADSHEET EXISTS FOR " & ML_UDF_SOH_SPREADSHEET & ".XLS",0, "MAS 90 ORDER SPREADSHEET"
End If
Set fs = nothing