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.

Crear Hoja por cada registro en una tabla

publicado

Hola

Tengo un ahoja excel con el nombre de una serie de alumnos. Me gustaria crear una hoja por cada linea. EL problema que tengo es que si hay dos alumnos con el mismo nombre, me da error, puesto que no puede haber dos hojas con el mismo nombre.

¿Como podria comprobar si existe el nombre de la hoja?

Mi codigo en Vba es el siguiente:



Sub Crear_hoja()
Worksheets.Item(1).Select



[a65536].Formula = "=COUNTA(R[-65535]C:R[-1]C)"
For i = 2 To [a65536].Value

Sheets.Add after:=Worksheets(Worksheets.Count)
Worksheets.Item(Worksheets.Count).Name = Worksheets.Item(1).Range("a" & i)
DoEvents
Next
Worksheets.Item(1).Select
[a10000].Clear

End Sub

[/code]

Adjunto, envio un ejemplo con los datos.

Muchas gracias y un saludo

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

No puede ayudarme nadie???

Tengo que dar mas informacion????

Ejemplo.rar

Ejemplo2003.xls

Ejemplo.rar

Ejemplo2003.xls

Featured Replies

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.