PC Review


Reply
Thread Tools Rate Thread

can't undo Full View with macro

 
 
gifer
Guest
Posts: n/a
 
      25th Jan 2008
I have a file that uses Workbook_open () macro to set up a page to Full view
when my users open the file. That leaves the screen nice and clean with only
text boxes linked to macros for the user to click on.

Problem is when they are finished using the file, I use Workbook_BeforeClose
to try and restore the screen to normal view. I can get the sheet tabs and
row/column headings to show up, but Application.DisplayFullScreen = False
does nothing as far as getting the menu bar to appear again. Is there some
other more direct command to specifically get the menu to show up?

Thanks!

Excel2003/Windows 2000NT


 
Reply With Quote
 
 
 
 
JLGWhiz
Guest
Posts: n/a
 
      26th Jan 2008
You might not need all of these, but you can modify as required.

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

"gifer" wrote:

> I have a file that uses Workbook_open () macro to set up a page to Full view
> when my users open the file. That leaves the screen nice and clean with only
> text boxes linked to macros for the user to click on.
>
> Problem is when they are finished using the file, I use Workbook_BeforeClose
> to try and restore the screen to normal view. I can get the sheet tabs and
> row/column headings to show up, but Application.DisplayFullScreen = False
> does nothing as far as getting the menu bar to appear again. Is there some
> other more direct command to specifically get the menu to show up?
>
> Thanks!
>
> Excel2003/Windows 2000NT
>
>
>

 
Reply With Quote
 
Gord Dibben
Guest
Posts: n/a
 
      26th Jan 2008
You may need this one

Application.CommandBars("Worksheet Menu Bar").Enabled = True


Gord Dibben MS Excel MVP

On Fri, 25 Jan 2008 16:05:00 -0800, JLGWhiz <(E-Mail Removed)>
wrote:

>You might not need all of these, but you can modify as required.
>
>Sub reset()
> With Application
> .DisplayFullScreen = False
> .DisplayFormulaBar = True
> .DisplayStatusBar = True
> End With
> With ActiveWindow 'This with statement sets everything to normal
> .DisplayHorizontalScrollBar = True
> .DisplayVerticalScrollBar = True
> .DisplayWorkbookTabs = True
> .DisplayHeadings = True
> .DisplayGridlines = True
> End With
>End Sub
>
>"gifer" wrote:
>
>> I have a file that uses Workbook_open () macro to set up a page to Full view
>> when my users open the file. That leaves the screen nice and clean with only
>> text boxes linked to macros for the user to click on.
>>
>> Problem is when they are finished using the file, I use Workbook_BeforeClose
>> to try and restore the screen to normal view. I can get the sheet tabs and
>> row/column headings to show up, but Application.DisplayFullScreen = False
>> does nothing as far as getting the menu bar to appear again. Is there some
>> other more direct command to specifically get the menu to show up?
>>
>> Thanks!
>>
>> Excel2003/Windows 2000NT
>>
>>
>>


 
Reply With Quote
 
VBA_Newbie79
Guest
Posts: n/a
 
      30th Jan 2008
gifer,
I am having the same trouble you are. I have tried the suggestions by
JLGWhiz and Gord, but that doesn't seem to be working. Have you been able to
figure out why DisplayFullScreen will not turn off, programmatically?

"gifer" wrote:

> I have a file that uses Workbook_open () macro to set up a page to Full view
> when my users open the file. That leaves the screen nice and clean with only
> text boxes linked to macros for the user to click on.
>
> Problem is when they are finished using the file, I use Workbook_BeforeClose
> to try and restore the screen to normal view. I can get the sheet tabs and
> row/column headings to show up, but Application.DisplayFullScreen = False
> does nothing as far as getting the menu bar to appear again. Is there some
> other more direct command to specifically get the menu to show up?
>
> Thanks!
>
> Excel2003/Windows 2000NT
>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel File Full View to Smaller View Chrystal Microsoft Excel Crashes 0 24th Aug 2009 05:16 PM
calendar week view - can't undo expanded view titanium-dave Microsoft Outlook Calendar 4 18th Aug 2008 08:50 PM
Full screen does not show full view as in thumbnail =?Utf-8?B?cm9kZWVk?= Microsoft Powerpoint 5 9th Apr 2005 08:59 PM
undo tree view =?Utf-8?B?UGV0ZXJiaWx0?= Windows XP General 8 17th Oct 2004 03:29 AM
MS Image View: how to switch from full view to normal view TGP Windows XP Photos 0 10th Dec 2003 05:15 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:57 AM.