Here is a bit of code which opens an Excel file from a hyperlink activated
on a form command button
CreateHyperlink Me!Storage, "", ExcelPath ' Open Excel using Hyperlink
DoEvents ' Does it's stuff
fCloseApp ("XLMAIN") ' Close ALL versions of Excel, any
spreadsheet
Application.DoC md.Maximize ' Why not
*************** ***************
DoCmd.SelectObj ect acForm, Me.Name
DoCmd.Maximize
Me.Visible = True
All works OK,except I am left with a minimised database and minimised form
on the task bar. Have to click on the minimised form to bring it to full
size.
Why is the Application.DoC md.Maximize instruction not working?
Thanks
Phil
on a form command button
CreateHyperlink Me!Storage, "", ExcelPath ' Open Excel using Hyperlink
DoEvents ' Does it's stuff
fCloseApp ("XLMAIN") ' Close ALL versions of Excel, any
spreadsheet
Application.DoC md.Maximize ' Why not
*************** ***************
DoCmd.SelectObj ect acForm, Me.Name
DoCmd.Maximize
Me.Visible = True
All works OK,except I am left with a minimised database and minimised form
on the task bar. Have to click on the minimised form to bring it to full
size.
Why is the Application.DoC md.Maximize instruction not working?
Thanks
Phil
Comment