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.

M.C.D y M.C.M en V.B.A

publicado

En las hojas de cálculo he usado bastante las funciones mín común múltiplo (M.C.M) y máx común divisor (M.C.D).

Pero ahora estoy haciendo una macro y no encuentro esas funciones en V.B.A. Me cuesta creer que no venga implementada.

Si es así, me gustaría conocer alguna macro sencilla para obtener esas funciones.

Gracias.

Featured Replies

publicado
  • Autor

Muchas gracias bigpetroman, no conocía la función evaluate. Ahora me hace falta 'evaluar' el MCD.

Gracias.

publicado

Hola!

Otra forma es también:

X=Application.WorksheetFunction.Lcm(5,9)

Y=Application.WorksheetFunction.Gcd(5,9)

Msgbox X

Msgbox Y

publicado
  • Autor
Hace 1 hora, DiegoPC dijo:

orma es también

Muchísimas gracias Pedro! Esas son las funciones que yo creía no implementadas en VBA y sobre las que no encontré información en ningún sitio.

Te estoy muy agradecido ;)

 

Hace 1 hora, DiegoPC dijo:

Hola!

Otra forma es también:

X=Application.WorksheetFunction.Lcm(5,9)

Y=Application.WorksheetFunction.Gcd(5,9)

Msgbox X

Msgbox Y

 

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.