I want to publish updated graphs to my intranet automaticlly. ie open excel, refresh data (from as400)then save,publish&close (running from the scheduler )
I have my Downloaded vb express & looked at vb sites etc… & managed to create a project which publishes the page to the intranet correctly using f5 but as I say I want this to be automatic. Any ideas ???
Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles
MyBase.Load
Call ColFunc()
End Sub
Function ColFunc() As Integer
Dim objExcel
Dim objWorkBook
objExcel = CreateObject(”EXCEL.APPLICATION”)
objWorkBook = objExcel.Workbooks.Open(”filename”)
objExcel.DisplayAlerts = False
objWorkBook.SaveAs(”filename”, 44)
objExcel.DisplayAlerts = True
objWorkBook.Close(True)
objExcel.Quit()
objWorkBook = Nothing
objExcel = Nothing
Return 0
End Function
End Class
Software/Hardware used:
ASKED:
September 15, 2008 2:50 PM
UPDATED:
September 20, 2008 9:46 PM