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, necesito macro para copiar hoja, imprimir y guardar

publicado

Buenas tardes, espero puedan ayudar... De ante mano muchas gracias.

-Tengo una macro que me copia la hoja en la cual trabajo y la renombra (Perfecto)**

Lo que necesito:

-Mensaje Yes/No "¿Desea guardar e Imprimir esta solicitud?"

-No: sigo trabajando, Yes: Copia hoja, guarda e imprime.

-Y por ultimo que limpie las cerdas de la hoja matriz.

Estas:

Range("D10:F10,A13:A28,C13:F28").Select

Range("D10:F10,A13:A28,C13:F28,A49:A64,C49:F64").Select

Selection.ClearContents

Observación: deseo bloquear la hoja pero con lo que tengo ya trabajado, me da un error.

GRACIAS POR SU AYUDA :)

Macro que copia y renombra:

Sub Botón4_Haga_clic_en()

Dim hoja As Worksheet

Dim existe As Boolean

Dim nueva As String

nueva = ActiveSheet.Name & Sheets.Count - 1

If nueva = Empty Then Exit Sub

For Each hoja In Worksheets

If hoja.Name = nueva Then existe = True

Next hoja

Application.DisplayAlerts = False

If existe = False Then

Sheets("Solicitud No.").Copy after:=Sheets(Sheets.Count)

With ActiveSheet

.Name = nueva

.Tab.Color = 16711680

.Shapes("Button 1").Delete

End With

MsgBox "Se Guardo Correctamente"

Sheets("Solicitud No.").Select

End If

Application.DisplayAlerts = True

Exit Sub

MsgBox "Ya existe una hoja con ese nombre."

End Sub

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.