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.

Error al ejecutar una macro

publicado

Con mucha pena tengo que decirles que conozco muy poco de macros y es por ello que respuosamente les formulo esta pregunta.

Siempre que copio una macho y al ejecutarla me sale el siguiene mensaje:" Error de Compilacion se esperava un End Sub" y me rasalda el Nombre de la Macro.

Mis sistema Operativo es Windows 7

El Oficce es 2007

El Error se repite con todas las macros que copio

El procedimiento que utilizo para copiar la macro es el siguiene:

1ª Abro un libro de excel

2ª Visual Basic

3ª Herramientas

4ª Macros

5ª Nombre de la Macro

6ª Crear

7ª Copio la Macro

"Esta es una macro copiada"

Sub MACRO7()

Private Sub Worksheet_Change(ByVal Target As Range)

If Target.Address(False, False) = "C15" Then

Application.EnableEvents = False

Target.Value = Target.Value + Range("AB1").Value

Range("AB1").Value = Target.Value

Application.EnableEvents = True

End If

End Sub

Muchisimas gracias por su ayuda

Featured Replies

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.