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.

Seleccionar celda de hoja creada y copiar a otra hoja

publicado

Buenas noches

Tengo el siguiente código que muy amablemente me ayudaron 

Sub Nuevokardexclte()
    Sheets("A1").Select
    Sheets("A1").Copy before:=Sheets(7)
      For Each Sh In Sheets
If InStr(1, Sh.Name, Range("B1")) > 0 Then
    'se busca el guión bajo porque no sabemos cuántos índices puede llegar a tener
    For i = Len(Sh.Name) To 1 Step -1
        If Mid(Sh.Name, i, 1) = "-" Then
            indi = Right(Sh.Name, Len(Sh.Name) - i) + 1
            nvonbre = Left(Sh.Name, i) & indi
            ActiveSheet.Name = nvonbre
            Exit For
        End If
    Next i
    'si i = 1 es que no encontró el guión
    If i = 0 Then
        nvonbre = Range("B1") & "-1"
        ActiveSheet.Name = nvonbre
    End If
    MsgBox "Ya existe hoja con nombre " & [B1] & ". Se la nombra como " & nvonbre & ".", , "ATENCIÓN"
    Exit Sub
End If
Next Sh
ActiveSheet.Name = Range("B1").Value
End Sub

Bueno lo que necesito es de la hoja creada seleccionar el contenido de la celda D1, copiar y pegar el valor de la celda mencionada a la ultima celda vacía de la columna B en mi hoja de calculo con el nombre de MENU .

Saludos cordiales

Jesús

Featured Replies

publicado

Hola jesus miguel,

Si la última hoja creada es una copia de la hoja "A1" puedes hacer lo siguiente:

sheets("MENU").range("B" & sheets("MENU").columns("B:B").rows(rows.count).end(xlup).row)=sheets("A1").range("D1")

te lo pongo de cabeza, pruébalo y comentas

  • Silvia bloqueó este tema

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.