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!

Set Workbook Size

Status
Not open for further replies.

MeldrethMan

Technical User
Feb 3, 2012
69
GB
I'm sending data to Excel from a selector form and would like to control the workbook dimensions so it is visible without scrolling.

This is the early part of the code for exporting

Dim objXL As Excel.Application
Dim objWkb As Excel.Workbook
Dim objSht As Excel.Worksheet
Dim rst As Recordset
Dim iRow As Integer
Dim iCol As Integer

Set objXL = CreateObject("Excel.Application")
Set objWkb = objXL.Workbooks.Add

'Create First Worksheet
Set objSht = objWkb.Worksheets("sheet1")
objSht.Name = "All"


Any thoughts appreciated.
 
This forum is for MS Access forms. You may get better help here: forum707

Beir bua agus beannacht!
 
Ok thanks, genomon, this looks to put me on the right track.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top