Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Embedded Excel OLE opens with 10 rows

Status
Not open for further replies.

CybOrg

Programmer
Nov 30, 1998
57
SE
Hi all ye gurus!

I've coded a VB app with a form with an embedded OLE object, which I dynamically turn into an Excel spreadsheet. The only problem is that after I've populated and formatted the sheet, I'd like it to at least fill the entire container window, not just 10 rows. If I double-click, then double-click again on the object handle, it auto-sizes quite nicely, but it'd be much nicer if I could do it via the VB code. MUCH nicer... ;-) (I also get two more columns than I need, but I figure I'll be able to solve that one once I get the answer on the rows...)

/Cy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top