Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
resizing Excel Window from VB.Net
Hello,
I just try to modify size and position of a Excel 2000 window from VB.Net (Express 2005) : AppExcel = New Excel.Application Classeur = AppExcel.Workbooks.Open(ficName) Feuille = Classeur.ActiveSheet win = AppExcel.Windows(1) I tried some stuff like : win.Top = 20D win.EnableResize = True win.Application.Top = 20D AppExcel.Top = 20D But all those lines lead to the same error : System.Runtime.InterOpServices.COMException For win.top for example : (translated from french) "Impossible to set Width property in Window class" or : "Exception from HRESULT: 0x800A03EC" The properties are not readOnly and I can acces to cells without any problem. What is the problem ? Thanx a lot. Sergio. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Moving and resizing the file window | Excel Discussion (Misc queries) | |||
Resizing Chart window using VBA | Charts and Charting in Excel | |||
Resizing cells in a selection without resizing entire sheet | Excel Discussion (Misc queries) | |||
Resizing search results window | New Users to Excel | |||
resizing excel window | Excel Programming |