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.

Guardar copia archivo si el original es de solo lectura oesta ocupado

publicado

Muy buenas, amigos les agradesco quien me puede ayudar

Actualmentetengo una macro que guarda el inicio de un archivo con este código.

With ActiveWorkbook

.RunAutoMacros xlAutoClose

.Save

.Close

End With

Pero tengo un problema cuando el archivo está en uso,Si el archivo Excel está en uso como puedo hacer para que esta guarde una copia si el archivo está en uso.

Gracias

- - - - - Mensaje combinado - - - - -

En el foro encontre esto, pero quien tenga una mejor idea.

Dim XLSLibro_B As Excel.Worksheet 'Se define la variable como hoja Excel

Set XLSLibro_B = Workbooks("NOMBRE DEL ARCHIVO").Sheets(1)

If Not Workbooks(XLSLibro_B.Parent.Name).ReadOnly Then

Workbooks(XLSLibro_B.Parent.Name).Close (True) 'cierra XLSLibro_B GUARDANDO los cambios

Else

Workbooks(XLSLibro_B.Parent.Name).Close (False) 'cierra XLSLibro_B SIN GUARDAR los cambios

MsgBox "El archivo está siendo utilizado por otro usuario." & Chr(10) _ & "Deberá volver a intentarlo más tarde, cuando el archivo esté disponible.", vbCritical

End If

Voy intentar con este codigo de ejemplo avr que logro.

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.