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.

Ayuda con funcion

publicado

Amigos buenos dias:

Necesito ejecutar el siguiente comando desde excel vba y que el resultado de ejecutar este comando en CMD "oculto" lo guarde en una variable en VBA, tener en cuenta que el resultado se puede componenr de dos lineas o mas dependiendo del numero de monitores que tenga conectados el PC 

 

powershell -command ""get-wmiobject wmimonitorid -namespace root\wmi|foreach-object{($_.SerialnumberID|foreach-object{[char]$_}) -join ''}""

 

Codigo OK.PNG

Featured Replies

publicado

no tengo manera de probar con mas de un monitor :(
en todo caso, sin pasar por PS, prueba algo +/- como lo siguiente y comentas ?

Sub getMonitorID()
  Dim elemCol, elem, serMon, serialNum
  Set elemCol = GetObject("winmgmts:{impersonationlevel=impersonate}!\\" & _
    Environ("computername") & "\root\wmi").ExecQuery("select * from wmimonitorid")
  For Each elem In elemCol
    For Each serMon In elem.SerialNumberID
      serialNum = serialNum & Chr(serMon)
    Next
    MsgBox serialNum
  Next
End Sub

 

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.