Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 441
Default Is it possible to hide the Windows Task Bar?

I am using VBA in Excel XP with Windows 2000.

Is it possible to hide the Windows Task Bar using VBA (perhaps with an API)?
If so, could someone please post a function that can be used to hide/unhide
it?

Thanks much in advance.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 214
Default Is it possible to hide the Windows Task Bar?

Hi quartz,

Private Declare Function FindWindowEx& Lib "user32" Alias "FindWindowExA" _
(ByVal hWnd1&, ByVal hWnd2&, ByVal lpsz1$, ByVal lpsz2$)
Private Declare Function ShowWindow& Lib "user32" (ByVal hwnd&, ByVal
nCmdShow&)

Sub TaskBar_Hide()
ShowWindow FindWindowEx(0, 0, "Shell_TrayWnd", vbNullString), 0
End Sub

Sub TaskBar_Show()
ShowWindow FindWindowEx(0, 0, "Shell_TrayWnd", vbNullString), 5
End Sub

MP


"quartz" a écrit dans le message de
...
I am using VBA in Excel XP with Windows 2000.

Is it possible to hide the Windows Task Bar using VBA (perhaps with an

API)?
If so, could someone please post a function that can be used to

hide/unhide
it?

Thanks much in advance.


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 441
Default Is it possible to hide the Windows Task Bar?

Just what I needed, thanks a lot!

"Michel Pierron" wrote:

Hi quartz,

Private Declare Function FindWindowEx& Lib "user32" Alias "FindWindowExA" _
(ByVal hWnd1&, ByVal hWnd2&, ByVal lpsz1$, ByVal lpsz2$)
Private Declare Function ShowWindow& Lib "user32" (ByVal hwnd&, ByVal
nCmdShow&)

Sub TaskBar_Hide()
ShowWindow FindWindowEx(0, 0, "Shell_TrayWnd", vbNullString), 0
End Sub

Sub TaskBar_Show()
ShowWindow FindWindowEx(0, 0, "Shell_TrayWnd", vbNullString), 5
End Sub

MP


"quartz" a écrit dans le message de
...
I am using VBA in Excel XP with Windows 2000.

Is it possible to hide the Windows Task Bar using VBA (perhaps with an

API)?
If so, could someone please post a function that can be used to

hide/unhide
it?

Thanks much in advance.



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
Windows in task bar in MS EXCEL 2007 Subramanya New Users to Excel 1 January 26th 10 05:41 PM
Windows in Task bar in 2007 Amit Kumar Baidyaka Excel Discussion (Misc queries) 1 April 3rd 09 06:14 PM
Problem with Windows in Task Bar command Jim Excel Discussion (Misc queries) 1 March 10th 06 06:13 PM
Task Bar & Windows Title changes Otto Moehrbach[_6_] Excel Programming 2 December 27th 04 11:47 AM
Checking for a Task on windows? NooK[_6_] Excel Programming 8 June 23rd 04 02:53 PM


All times are GMT +1. The time now is 02:12 PM.

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"