![]() |
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. |
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 |
Hiding Windows Start bar
Thank you for your help.
|
All times are GMT +1. The time now is 05:27 AM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com