ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   displayfullscreen = false not working (https://www.excelbanter.com/excel-programming/321831-displayfullscreen-%3D-false-not-working.html)

job

displayfullscreen = false not working
 
I'm using code to Application.DisplayFullScreen = True on the open event of
the workbook. In the beforeclose event I have the
Application.DisplayFullScreen = False yet it does not work. Any ideas?

cheers,

Job



Ken Macksey

displayfullscreen = false not working
 
Worked fine for me when I tried it with excel 2002. If you are opening the
same workbook, it will open fullscreen because of the code in workbook_open.

HTH

Ken



job

displayfullscreen = false not working
 
Ken,

When I open it is just fine, it is on the beforeclose event that it is not
working. If I put two buttons on a sheet, one that displays full screen and
one that sets it back to false it works fine. It simply doesn't work when I
have it associated with the beforeclose workbook event. Is there some
little trick I'm missing?


"Ken Macksey" wrote in message
...
Worked fine for me when I tried it with excel 2002. If you are opening the
same workbook, it will open fullscreen because of the code in

workbook_open.

HTH

Ken





job

displayfullscreen = false not working
 
I also failed to mention that I'm closing the sheet with code...not sure if
that would make a difference...
"Ken Macksey" wrote in message
...
Worked fine for me when I tried it with excel 2002. If you are opening the
same workbook, it will open fullscreen because of the code in

workbook_open.

HTH

Ken





job

Ok possible work around
 
If from the menu on the close button I use
me.hide
Application.SendKeys("%fc")
this will now disable the full screen. If I use the code from the button

ActiveWorkbook.Close SaveChanges:=False it doesn't disable...

does anyone know with the send keys how to savechanges:=false?




"Ken Macksey" wrote in message
...
Worked fine for me when I tried it with excel 2002. If you are opening the
same workbook, it will open fullscreen because of the code in

workbook_open.

HTH

Ken






All times are GMT +1. The time now is 05:18 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com