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 macro en excel 2007 tiempo de ejecución en 2003 funciona bien

publicado

Hola

ojala me ayuden con esta macro q en el 2003 funciona perfecto , pero en 2007 se cae al toque

me aparece algo de un error 1004 tiempo ejecución , pero no logro repararla, esto pq me borraran el 2003

y me urge q funcione, es una macro para enviar varios correos con información de excel

la macro es

Private Sub ENVIAR_EMAIL()

Application.ScreenUpdating = False

Application.DisplayAlerts = False ' para q no salga aviso al final

HMAIL.Activate

HSAL.Cells.Clear

HMAIL.Cells.Copy HSAL.Cells

'Workbooks(L3).SaveCopyAs ThisWorkbook.Path & "\LOCAL " & COL.List(x, 0) & ".xls"

ActiveWorkbook.EnvelopeVisible = True 'permite enviar mas de 1 correo a la vez 'aca se cae!!

With ActiveSheet.MailEnvelope

'.Introduction = "Estimado Sr. " & COL.List(x, 4)

.Introduction = COL.List(x, 4) & Chr(13) & "Adjunto avances" & Chr(13) & _

"gestión"

.Item.To = COL.List(x, 2) 'Destinatario

'.Item.Subject = COL.List(x, 0) & "-" & COL.List(x, 1) 'Asunto

.Item.Subject = "Avance" 'Asunto

For n = 3 To 100

If Cells(n, 2) = "" And Cells(n, 8) <> "" Then

Cells(n + 1, 2) = "contactarse con" & Chr(10) & "pp" & Chr(10) & "Atentamente," & Chr(10) & "Gerencia"

Cells(n + 1, 2).HorizontalAlignment = xlLeft

'Cells(n + 2, 2).VerticalAlignment = xlCenter

'Cells(n + 2, 2).WrapText = True

Else

End If

Next n

Columns("A:j").Select

Columns("A:j").EntireColumn.AutoFit

.Item.Send 'enviamos el mail

End With

gracias

oliver

Featured Replies

No hay posts para mostrar

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.