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.

Listar nombres de puertos disponibles de pc

publicado

Hola a todos.Estoy programando una macro en Excel para listar los números de los puertos serie disponibles de mi pc (COM1, COM4, COM14, etc.). he intentado con este código

Dim TotalPuertos

Application.COMAddIns.Update

TotalPuertos = Application.COMAddIns.Count

ComboBox1.Clear

For i = 1 To TotalPuertos

ComboBox1.AddItem Application.COMAddIns(i)

Next i

Pero no soy capaz de que me salga como COM1, COM4, COM14, etc. o incluso como 1, 4, 14, etc.

¿Alguna idea?

Saludos

Featured Replies

publicado

Con esta macro no va a ser posible:

Application.COMAddIns no se refiere a puertos COM si no a COMplementos instalados en la aplicación.

Busca en Google, debe haber alguna API para averiguar si el puerto está o no disponible.

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.