Minimizar Todas las Aplicaciones Abiertas con Shell y VBA

Obed

21/01/16

Facil y rapido

Haz tu trabajo con mucha rapidez y de manera más sencilla.

Ponte en contacto.

Soporte

Resuelve todas tus dudas y recibe la mejor asesoría en en los proyectos que desarrolles.

¡Contáctanos!

Reportes

Desempéñate mejor en tus tareas con nuestros reportes en Excel.

¡Te decimos como lograrlo!

Hace poco me preguntaban si existía alguna manera de minimizar todas las aplicaciones abiertas independientes de Excel e incluyendo las sesiones de Excel también.

Aquí les comparto una rutina con la que pueden lograr hacerlo:

'****************************************'
' Email: obed.cruz@exceltrabajaporti.com '
' www.exceltrabajaporti.com              '
' Excel VBA Developer                    '
'****************************************'

Sub MinimizarTodasAplicacionesAbiertas()
Dim WSHshell As Object, Shell As Object
    
  Set WSHshell = CreateObject("WScript.Shell")
  Set Shell = CreateObject("Shell.Application")
    
    Shell.MinimizeAll
 
  Set WSHshell = Nothing
  Set Shell = Nothing

End Sub

 

Copyright © 2022 Exceltrabajaporti.com - Todos los derechos reservados.