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.

Cambiar nombre de destino.

publicado

Buenos días.

Soy nuevo en esto de las macros.

estoy usando una macro para importar archivos csv en un hoja Excel, el problema es que al final necesito 8 hojas de Excel y la macro que tengo, le tengo que especificar nombre de hoja, por lo que al final tengo 8 macros.

alguien me puede ayudar e indicarme que tengo que cambiar para que la macro solo me anexe los datos csv en la hoja activa.

pongo ejemplo:

Sub AnexarCSV50()

Dim t As Single

Dim LastRow As Long

LastRow = Range("B8").End(xlDown).Row + 1

strFile = Application.GetOpenFilename("CSV, *.csv")

If strFile = Empty Then

Response = MsgBox("Ningún fichero seleccionado", _

vbOKOnly, "Error")

Exit Sub

Else

End If

With Sheets("Acom. 50m").QueryTables.Add(Connection:= _

"TEXT;" & strFile _

, Destination:=Sheets("Acom. 50m").Range("B" & LastRow))

.Name = "fichero"

.FieldNames = True

.RowNumbers = False

.FillAdjacentFormulas = False

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.