Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

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.

Excel Problem,makro?

Empfohlene Antworten

Veröffentlicht

Hallo,

also habe ein sehr dringendes Problem bzw. Frage.

Und zwar habe ich ein Tabellenblatt mit 250 Einträgen. Jetzt möchte ich unter jedem Eintrag diesen dreimal dadrunter haben. Also so:

test test test test test ========so sieht die Tabelle jetzt aus

a a a a a ========so sieht die Tabelle jetzt aus

test test test test test

test test test test test

test test test test test

a a a a a

a a a a a

a a a a a

so soll sie dann aussehen. Also im Prinzip nehme ich die erste Zeile und kopier sie mir, füge sie dann 3 mal ein und nimm mir die nächste vor. Und das dann in einer Schleife.

Kann mir eben schnell einer nen Code geben, wäre echt nett. Danke im voraus.

Also im Prinzip nehme ich die erste Zeile und kopier sie mir, füge sie dann 3 mal ein und nimm mir die nächste vor. Und das dann in einer Schleife.

dein ansatz ist schon mal nicht schlecht.

Kann mir eben schnell einer nen Code geben, wäre echt nett. Danke im voraus.

wieso versuchst du es nicht mit dem allseits beliebten, aber viel zu oft unterschätzten makrorecorder?

    Rows("1:1").Select

    Selection.Copy

    Selection.Insert Shift:=xlDown

    Rows("1:1").Select

    Selection.Copy

    Selection.Insert Shift:=xlDown

wenn du das für alle 250 (oder mehr) zeilen machen möchtest, ersetzt du zeilenangaben in der positionierungsanweisung "Select" durch eine schleifenvariable und läuft die durch - stichworte for, next, do, while, loop, until.

s'Amstel

  • Autor

Habe es jetzt so gelöst:

Sub Zeilenkompieren()

y = 120

x = 1

Do While x <> y

Rows(x & ":" & x).Select

Selection.Copy

Selection.Insert Shift:=xlDown

Selection.Copy

Selection.Insert Shift:=xlDown

Selection.Copy

Selection.Insert Shift:=xlDown

x = x + 4

Loop

End Sub

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

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.