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.

Macro eliminar un directorio cuya ruta esta en a1

Featured Replies

publicado

Sub EliminarCarpeta(): On Error Resume Next
Kill [A1].Value & "\*.*" ' Elimina todos los archivos de la carpeta
RmDir [A1].Value ' Elimina la carpeta
End Sub
[/CODE]

publicado

Pero si dentro de la carpeta tienes subdirectorios, esos no los borra, aguas con ello! Aun asi muy buen codigo!

publicado
Pero si dentro de la carpeta tienes subdirectorios, esos no los borra, aguas con ello! Aun asi muy buen codigo!

Delete files and folders

Sub Clear_All_Files_And_SubFolders_In_Folder()
'Delete all files and subfolders
'Be sure that no file is open in the folder
Dim FSO As Object
Dim MyPath As String

Set FSO = CreateObject("scripting.filesystemobject")

MyPath = "C:\Users\Ron\Test" '<< Change

If Right(MyPath, 1) = "\" Then
MyPath = Left(MyPath, Len(MyPath) - 1)
End If

If FSO.FolderExists(MyPath) = False Then
MsgBox MyPath & " doesn't exist"
Exit Sub
End If

On Error Resume Next
'Delete files
FSO.deletefile MyPath & "\*.*", True
'Delete subfolders
FSO.deletefolder MyPath & "\*.*", True
On Error GoTo 0

End Sub[/CODE]

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.