hi,
i have the following code that inputs data onto an excel worksheet.
i can save the sheet, but when i open up the file, i have to go to Window,Unhide,UnhideWorkbook in order to view the file.
How can i save the file without hiding it?
Here's a sample of the code
thanks
zach
i have the following code that inputs data onto an excel worksheet.
i can save the sheet, but when i open up the file, i have to go to Window,Unhide,UnhideWorkbook in order to view the file.
How can i save the file without hiding it?
Here's a sample of the code
Code:
Sub Main()
' Get the main system object
Dim Sessions As Object
Dim System As Object
Set System = CreateObject("EXTRA.System") ' Gets the system object
Set Sessions = System.Sessions
Dim obj as object
Dim objWorkbook as object
Set obj=CreateObject("Excel.Application")
Set obj= getobject("C:\test.xls")
set objWorkbook=obj.Worksheets("Sheet1")
Dim Sess0 As Object
Set Sess0 = System.ActiveSession
objWorkBook.Range("A4").value = "GOODBYE"
Obj.save
set objWorkBook = Nothing
set objExcel = Nothing
End Sub
thanks
zach