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: error ´91´ en tiempo de ejecución: variable de objeto o bloque With no establecido

publicado

Estimados, Estoy tratando de hacer una macros que me permita abrir todos los archivos de una carpeta, copiar una casilla y pegarla en la tabla de otro archivo, pero al ejecutar me lanza el error previamente mencionado. Si alguien me puede ayudar en esto estaría muy agradecido. Saludos!

Option Explicit

Sub Open_All_Files()

Dim oWbk As Workbook

Dim sFil As String

Dim sPath As String

sPath = "C:\Users\User\Desktop\Respaldo Periodo Felipe 08-03-2012\TERPEL\Planillas TERPEL\checkist total\"

ChDir sPath

sFil = Dir("*.xlsx")

Do While sFil <> ""

oWbk = Workbooks.Open(sPath & "ID1 ISLA BILBAO.xlsx")

ThisWorkbook.Activate

Sheets("Isla").Select

With ActiveSheet

.Range("G10:J10").Select

Selection.Copy

End With

Windows("Ranking Checklist.xltm").Activate

Sheets("Hoja3").Select

With ActiveSheet

.Range("B2").Select

Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _

:=False, Transpose:=False

End With

ActiveCell.Offset(1, 0).Select

oWbk.Close True

sFil = Dir

Loop

End Sub

Featured Replies

publicado

Saludos.

Con un adjunto seria mas facil.

Atte.

joshua

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.