kipster1203
Registered User.
- Local time
- Today, 05:03
- Joined
- May 5, 2010
- Messages
- 13
As the title says, I'd like to know what I need to change to make my excel document open maximized when I call it. Here's my code:
THANK YOU!!
Code:
Private Sub Project_Summary_Click()
On Error GoTo Err_Project_Summary_Click
Dim oXL As Object
Dim sFullPath As String
DoCmd.SetWarnings False
'Project Summary Report
DoCmd.TransferSpreadsheet acExport, , "Status Report Query", "W:\edsplus\applications\0cmad\project summary.xls", True, "Query_Data"
' Create a new Excel instance
Set oXL = CreateObject("Excel.Application")
' Full path of excel file to open
sFullPath = "W:\edsplus\applications\0cmad\project summary.xls"
' Open it
With oXL
.Visible = True
.Workbooks.Open (sFullPath)
End With
DoCmd.Close acForm, Me.Name
Exit_Project_Summary_Click:
Exit Sub
Err_Project_Summary_Click:
MsgBox Err.Description
Resume Exit_Project_Summary_Click
End Sub
THANK YOU!!