Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Weird gray line at top of screen


I am having a strange problem that I can't figure out using the
debugger. When I run my code, a gray line appears at the top of the
screen. When I step through the code using the debugger, it doesn't
appear. Once the line appears, it doesn't go away. It covers the top
two rows of my screen.

First, some background. My application is separated into 3 workbooks
that span across network drives. I have a launcher workbook that makes
sure macros are enabled and it opens a pricing file as read only so a
bunch of users can get to the same file at once. It then launches my
workbook which contains the bulk of the application.

Upon entering the application, I execute the following code in the
workbook open phase:

APPLICATION.COMMANDBARS.ACTIVEMENUBAR.ENABLED = FALSE
APPLICATION.DISPLAYFULLSCREEN = TRUE
APPLICATION.COMMANDBARS(\"FULL SCREEN\").ENABLED = FALSE
I do this to prevent my users from accessing any menus. I do other
things, but I think these lines of code are leading to my gray line
problem.

Anyway, inside my application, I allow the user to open a text file
which populates values across about 30 sheets inside the workbook. It
is when I close this input file that I get the gray line that won't go
away.

I have tried:

APPLICATION.SCREENUPDATING = FALSE

Just leaving the text file open

and about a dozen other things.

Any help would be greatly appreciated.

Bruce Gold


--
Bruce001
------------------------------------------------------------------------
Bruce001's Profile: http://www.excelforum.com/member.php...o&userid=26630
View this thread: http://www.excelforum.com/showthread...hreadid=507817

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Weird gray line at top of screen


Just bumping this back to the top. I am still having the problem. I ha
a partial success when I ran this before I opened the text file:

Application.CommandBars.ActiveMenuBar.Enabled = True
Application.CommandBars("Full Screen").Enabled = True
Application.DisplayFullScreen = False

And then turned it back on after closing the file. But the gray lin
would appear after switching a few times between sheets.

Is there a better way of getting rid of the menu bars, tool bars, etc
out there

--
Bruce00
-----------------------------------------------------------------------
Bruce001's Profile: http://www.excelforum.com/member.php...fo&userid=2663
View this thread: http://www.excelforum.com/showthread.php?threadid=50781

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
Excel comes up gray screen when first launched G Excel Discussion (Misc queries) 0 November 5th 08 06:36 PM
Gray Screen when opening Desktop Brenda from Michigan Excel Discussion (Misc queries) 4 May 22nd 08 05:49 PM
GRAY SCREEN stella Excel Discussion (Misc queries) 1 April 12th 06 12:15 AM
Getting a gray screen Jenn Excel Discussion (Misc queries) 8 January 6th 06 03:59 PM
Left Side of Excel Screen Turns Gray [email protected] Excel Programming 2 April 26th 04 10:42 PM


All times are GMT +1. The time now is 10:55 AM.

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"