M
MadIndian
I am using this code to change the page orientation in excel, previously
worked fine now it takes 20 seconds to execute any ideas are greatly
appreciated
Code:
Dim objExcel As New Excel.Application
Dim objBook As Excel.Workbook = objExcel.Workbooks.Add
Dim objSheet As Excel.Worksheet = CType(objBook.Worksheets(1),
Excel.Worksheet)
objSheet.PageSetup.Orientation = Excel.XlPageOrientation.xlLandscape ' Hangs
here and never used to then continues on
Keith
worked fine now it takes 20 seconds to execute any ideas are greatly
appreciated
Code:
Dim objExcel As New Excel.Application
Dim objBook As Excel.Workbook = objExcel.Workbooks.Add
Dim objSheet As Excel.Worksheet = CType(objBook.Worksheets(1),
Excel.Worksheet)
objSheet.PageSetup.Orientation = Excel.XlPageOrientation.xlLandscape ' Hangs
here and never used to then continues on
Keith