Saltar al contenido
View in the app

A better way to browse. Learn more.

Ayuda Excel

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

"Switch to"

publicado

Hola, antes que nada, les agradezco el interés en la publicación.

 

Estoy trabajando en el siguiente código:

--->>>

Sub SoftToken_Test()

Dim cObj As Object
Dim Programa As Object
Dim Proceso As Object
 

Set cObj = GetObject("winmgmts://.")
Set Proceso = cObj.ExecQuery("SELECT * FROM " & _
"Win32_Process WHERE Name = 'SoftToken.exe'")

For Each Programa In Proceso
    On Error Resume Next
        Call Programa.Terminate
    On Error GoTo 0
Next

Set Proceso = Nothing
Set cObj = Nothing

End Sub

<<<---

El cual termina la ejecución del programa en cuestión, pero desearía su ayuda en saber cuan es la linea de código para hacer "switch to" o poner activa la ventana del programa en cuestión.

De antemano muchas gracias

Featured Replies

publicado
  • Autor

Buen día a todos.

Les agradezco a los que leyeron la publicación, después de una entretenida búsqueda si con la solución:

Sub Soft_Test()

Dim cObj As Object
Dim Programa As Object
Dim Proceso As Object
 

Set cObj = GetObject("winmgmts://.")
Set Proceso = cObj.ExecQuery("SELECT * FROM " & _
"Win32_Process WHERE Name = 'SoftToken.exe'")

For Each Programa In Proceso
    On Error Resume Next
    If Err.Number = 0 Then AppActivate Programa '<- esta linea es la realiza lo que necesitaba
        Call Programa.Terminate
    On Error GoTo 0
Next

Set Proceso = Nothing
Set cObj = Nothing

End Sub

Por lo que no tengo inconveniente en cerrar el tema. Saludos.

Archivado

Este tema está ahora archivado y está cerrado a más respuestas.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.