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.

Incompatibilidad función FileSearch excel 2007

publicado

Buenas gente,

Me he cambiado a la version 2007 del Excel, y he estado leyendo que no soporta esta función.

He leído por ahí y no consigo aclararme, asi que he optado al final por pediros un cable.

Esta es la sencilla función que utilizaba yo:

    With Application.FileSearch
.LookIn = ThisWorkbook.Path
.Filename = Hoja1.Cells(24, 11) & ".xls"
If .Execute > 0 Then 'existe
archivo = ThisWorkbook.Path & "\" & Hoja1.Cells(24, 11)
Application.ScreenUpdating = False
Workbooks.Open (archivo)
Set xlsheet = ActiveWorkbook.Sheets.Item(1)
ThisWorkbook.Activate
Else 'no existe
z = 1
End If
End With[/CODE]

Cómo la puedo amoldar para que funcione con el 2007?

Muchas gracias de antemano

Featured Replies

publicado

Hola mira este ejemplo creo te servira. se usa Dir en lugar de FileSearch

sirve para listar los archivos de un directorio.

Sub Listado_archivos()

Dim Ruta As String, Nombre As String, i As Integer

Ruta = Application.ActiveWorkbook.Path + "\*.xls"

Nombre = Dir(Ruta)

i = 1

Do While Nombre <> ""

Cells(i, 1) = Nombre

i = i + 1

Nombre = Dir

Loop

End Sub

Salu2.xlsx

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.