Results 1 to 9 of 9

code for hiding taskbar

Threaded View

  1. #1
    Registered User
    Join Date
    10-19-2010
    Location
    netherlands
    MS-Off Ver
    Excel 2007, 2010 (Win 7 x64)
    Posts
    10

    Smile code for hiding taskbar

    Hey'all
    This forum has come very handy to me, but now I've found a code that doesn't work for me.

    I'm looking for a macro that can toggle the task bar from showing. With the purpose I can run the excel program in full-screen.

    code i found on this forum:
    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
    I have windows 7 and excel 2007. For me, this code make's the task bar invisible, but the start button is still visible. and i can't run excel full screen because the space of the task bar is still token.

    (I added a print screen for you to see how the macro works for me)

    Can anybody help me with this?

    Thanks in advance
    Attached Images Attached Images
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1