Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 04-12-2009, 09:33 AM
Bird_FAT's Avatar
Bird_FAT Bird_FAT is offline Excel won't open maximized from URL Excel won't open maximized from URL Office 2007
Expert
 
Join Date: Apr 2009
Location: South East
Posts: 271
Bird_FAT is on a distinguished road
Default

Quote:
Originally Posted by jdanton View Post
I have a hyper link to an Excel file on my webpage. The problem is when Excel opens neither the app nor the file are opened in a maximized state. Is there a way for me to control the state Excel opens in by passing a parameter of some sort or is there a setting I don't see in Excel to tell the file to always open maximized when opened from a browser? It opens maximized when I just open the file by itself (not from the url).

try adding

Code:
Option Explicit 
 
Private Sub Workbook_Open() 
    Application.WindowState = xlMaximized 
End Sub
to the 'ThisWorkbook' Microsoft Excel Object in the VBA window (it should be visible in the tree on the left and the icon is the same as an excel document)

Then it will Maximize the Excel app upon opening!


Bird
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel won't open maximized from URL Opening multiple Excel files within the same Excel window. lost9471 Excel 2 05-01-2010 01:57 PM
Open DOCX in Word 2007 & Open DOC in Word 2003 wilde_37 Office 0 02-03-2009 12:37 AM
"open" or "open using" option not availa ccd Outlook 0 09-22-2006 01:23 AM
Excel document won't open from Outlook shinobi89 Office 0 06-01-2006 02:10 PM
How do I use an Excel form to populate and Excel spreadsheet apostht Excel 0 05-21-2006 11:17 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 10:22 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft