Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 131
Default Hiding Windows Start bar

Is there a way from VBA in Excel to minimize or hide the start bar in your
windows? We are trying to go to true full screen with an application and
would like to have this hidden as well?

Thanks.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,202
Default Hiding Windows Start bar

Is there a way from VBA in Excel to minimize or hide the start bar in your
windows? We are trying to go to true full screen with an application and
would like to have this hidden as well?


The code following my signature will allow you to do that. Simple issue this
command when you want to hide it...

Taskbar False

and this command to show it again...

Taskbar True

Rick

Private Declare Function ShowWindow Lib "user32" _
(ByVal hwnd As Long, ByVal nCmdShow As Long) As Long

Private Declare Function FindWindow Lib "user32" _
Alias "FindWindowA" _
(ByVal lpClassName As String, _
ByVal lpWindowName As String) As Long

Private Declare Function FindWindowEx Lib "user32" _
Alias "FindWindowExA" _
(ByVal hWnd1 As Long, _
ByVal hWnd2 As Long, _
ByVal lpsz1 As String, _
ByVal lpsz2 As String) As Long

Sub TaskBar(blnValue As Boolean)
Dim lngHandle As Long
Dim lngStartButton As Long
lngHandle = FindWindow("Shell_TrayWnd", "")
If blnValue Then
ShowWindow lngHandle, 5
Else
ShowWindow lngHandle, 0
End If
End Sub

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 131
Default Hiding Windows Start bar

Thank you for your help.
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
Making Windows XP Start 60% Faster Stranger Excel Discussion (Misc queries) 1 May 16th 07 10:06 PM
Start Windows in Safe Mode Kim Excel Discussion (Misc queries) 0 October 9th 06 08:44 PM
OT :Start your own online business today !start making dollars [email protected] Excel Discussion (Misc queries) 0 May 6th 06 09:29 PM
Start Windows Explorer from Excel DoctorG Excel Programming 9 September 27th 05 06:36 PM
Hiding toolbars but keeping the Windows Menu Bar? Big Chris[_28_] Excel Programming 1 January 9th 04 08:12 PM


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

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

About Us

"It's about Microsoft Excel"