Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 18
Default Maximized Workbook

I have a workbook with several macros I've been modifying for years. I
created it using XL2003. It works perfectly with that version of XL,
however, the company I work for uses XL2000. I don't know what I've
done to make the workbook minimize/maximize/close buttons disappear,
but they have. The workbook opens fine in XL2000, but it does not
expand to fill the XL program container. It sits unmovable on the left
side without any buttons. It won't even scroll. I know I did something
years ago that did that thinking I'd always use XL2003....but I was
mistaken.

Is there a way I can restore the buttons, or at least maximize it to
fit the application?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,986
Default Maximized Workbook

Run this and see if it helps:

Sub restoreXL()
With Application
.DisplayFullScreen = False
.DisplayFormulaBar = True
.DisplayStatusBar = True
End With
With ActiveWindow 'This with statement sets everything to normal
.WindowState.xlMaximized
.DisplayHorizontalScrollBar = True
.DisplayVerticalScrollBar = True
.DisplayWorkbookTabs = True
.DisplayHeadings = True
.DisplayGridlines = True
End With
End Sub





"Stephen Newman" wrote:

I have a workbook with several macros I've been modifying for years. I
created it using XL2003. It works perfectly with that version of XL,
however, the company I work for uses XL2000. I don't know what I've
done to make the workbook minimize/maximize/close buttons disappear,
but they have. The workbook opens fine in XL2000, but it does not
expand to fill the XL program container. It sits unmovable on the left
side without any buttons. It won't even scroll. I know I did something
years ago that did that thinking I'd always use XL2003....but I was
mistaken.

Is there a way I can restore the buttons, or at least maximize it to
fit the application?

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 18
Default Maximized Workbook

On Tue, 24 Jun 2008 17:32:01 -0700, JLGWhiz
wrote:

Thanks, but no.

The .windowstate throws a compile error with ActiveWindow. If I move
it to Application it runs, but I still don't have the workbook
buttons. If I open another workbook the minimize/maximize/close
buttons appear in the newly opened workbook, but when I switch back to
the original workbook they're still gone.



Run this and see if it helps:

Sub restoreXL()
With Application
.DisplayFullScreen = False
.DisplayFormulaBar = True
.DisplayStatusBar = True
End With
With ActiveWindow 'This with statement sets everything to normal
.WindowState.xlMaximized
.DisplayHorizontalScrollBar = True
.DisplayVerticalScrollBar = True
.DisplayWorkbookTabs = True
.DisplayHeadings = True
.DisplayGridlines = True
End With
End Sub





"Stephen Newman" wrote:

I have a workbook with several macros I've been modifying for years. I
created it using XL2003. It works perfectly with that version of XL,
however, the company I work for uses XL2000. I don't know what I've
done to make the workbook minimize/maximize/close buttons disappear,
but they have. The workbook opens fine in XL2000, but it does not
expand to fill the XL program container. It sits unmovable on the left
side without any buttons. It won't even scroll. I know I did something
years ago that did that thinking I'd always use XL2003....but I was
mistaken.

Is there a way I can restore the buttons, or at least maximize it to
fit the application?

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 18
Default Maximized Workbook

I must have known I'd run into this problem years ago. Tom Ogilvy
answered this question way back in 2002. I have an xlVeryHidden sheet
with some programming notes on it, and I'd pasted an entire post on
this subject there.

If the workbook is protected and 'windows' is selected the buttons are
not available. In fact they're not even there.

I simply unprotected the workbook and they reappeared.

Certainly this is one of the reasons the '.... for Dummies' line of
books has been published.


On Tue, 24 Jun 2008 17:32:01 -0700, JLGWhiz
wrote:

Run this and see if it helps:

Sub restoreXL()
With Application
.DisplayFullScreen = False
.DisplayFormulaBar = True
.DisplayStatusBar = True
End With
With ActiveWindow 'This with statement sets everything to normal
.WindowState.xlMaximized
.DisplayHorizontalScrollBar = True
.DisplayVerticalScrollBar = True
.DisplayWorkbookTabs = True
.DisplayHeadings = True
.DisplayGridlines = True
End With
End Sub





"Stephen Newman" wrote:

I have a workbook with several macros I've been modifying for years. I
created it using XL2003. It works perfectly with that version of XL,
however, the company I work for uses XL2000. I don't know what I've
done to make the workbook minimize/maximize/close buttons disappear,
but they have. The workbook opens fine in XL2000, but it does not
expand to fill the XL program container. It sits unmovable on the left
side without any buttons. It won't even scroll. I know I did something
years ago that did that thinking I'd always use XL2003....but I was
mistaken.

Is there a way I can restore the buttons, or at least maximize it to
fit the application?

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Force to run maximized Robyn Excel Programming 3 April 25th 08 12:21 PM
Maximized or minimize Philosophaie Excel Programming 2 July 15th 07 04:40 AM
Opening a workbook window maximized John Crosher Excel Discussion (Misc queries) 7 February 17th 07 07:34 PM
Startup Maximized Mike Busch Excel Discussion (Misc queries) 1 January 5th 05 09:27 PM
VB and Help Windows Maximized TroyW[_2_] Excel Programming 0 June 21st 04 01:44 AM


All times are GMT +1. The time now is 06:49 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"