Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default 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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Moving and resizing the file window Jose Olivencia Excel Discussion (Misc queries) 0 December 4th 09 05:39 PM
Resizing Chart window using VBA Barb Reinhardt Charts and Charting in Excel 1 April 13th 07 02:23 PM
Resizing cells in a selection without resizing entire sheet Danielle via OfficeKB.com Excel Discussion (Misc queries) 4 August 11th 06 10:06 PM
Resizing search results window Judy F New Users to Excel 0 February 2nd 06 12:52 AM
resizing excel window JNW Excel Programming 2 November 4th 05 09:22 PM


All times are GMT +1. The time now is 05:03 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"