#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default Show desktop

Is there a way to duplicate programatically the "show desktop"
shortcut on the quick launch toolbar
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,441
Default Show desktop

James,

You can use a macro, tied to a button.

You will need to set a reference to "Microsoft Shell Controls and Automation" which is the file
Shell32.dll.

Sub ShowDesktop()
Dim objShell As Shell
Set objShell = New Shell
objShell.MinimizeAll
Set objShell = Nothing
End Sub

Sub UndoShowDesktop()
Dim objShell As Shell
Set objShell = New Shell
objShell.UndoMinimizeALL
Set objShell = Nothing
End Sub

The UndoShowDesktop will undo the first one programatically....

HTH,
Bernie
MS Excel MVP


wrote in message ...
Is there a way to duplicate programatically the "show desktop"
shortcut on the quick launch toolbar



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,231
Default Show desktop

"Bernie Deitrick" <deitbe @ consumer dot org wrote...
You can use a macro, tied to a button.

You will need to set a reference to "Microsoft Shell Controls and
Automation" which is the file Shell32.dll.

....

Or you could just run the "Show Desktop.scf" file directly.

Sub toggledesktop()
Shell Environ("COMSPEC") & " /c """ & Environ("APPDATA") & _
"\Microsoft\Internet Explorer\Quick Launch\Show Desktop.scf"""
End Sub

Run it once to minimize all windows and show the desktop, run it again
to restore all windows. Or click on the desktop icon in the Quick
Launch portion of the task bar.

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
Show linked cell alone somwhere on the desktop GPS New Users to Excel 3 March 12th 07 02:23 PM
Browse desktop jason2444 Excel Discussion (Misc queries) 0 November 29th 06 04:44 PM
Desktop Shortcut Tom New Users to Excel 1 October 23rd 06 01:00 AM
File from Desktop Sam Setting up and Configuration of Excel 1 February 3rd 06 08:08 PM
Excel on desktop bradsdad25 Excel Discussion (Misc queries) 2 January 6th 05 10:31 PM


All times are GMT +1. The time now is 08:55 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"