![]() |
![]() |
|
|
|||||||
| Registrieren | Hilfe/Forumregeln | Benutzerliste | Kalender | Suchen | Heutige Beiträge | Alle Foren als gelesen markieren |
| Software Rat & Tat bei Softwareproblemen |
![]() |
|
|
Themen-Optionen | Ansicht |
|
|
|
|
#1 |
|
Master
![]() Registriert seit: 22.03.2000
Alter: 66
Beiträge: 550
|
Hi!
flinx war wohl schneller. Ich habe keine Tabelle angegeben. Es wird immer das aktive Blatt verwendet. Der Code ist glaube ich selbsterklärend. Sub Sortieren() Dim intSourceRow As Integer Dim intSourceCol As Integer Dim intDestRow As Integer Dim intDestCol As Integer Dim intLoopCounter As Integer intSourceRow = 3 intSourceCol = 1 intDestRow = 3 intDestCol = 9 For intLoopCounter = 1 To 3 Do Cells(intDestRow, intDestCol) = Cells(intSourceRow, intSourceCol) intDestRow = intDestRow + 1 intSourceCol = intSourceCol + 4 Cells(intDestRow, intDestCol) = Cells(intSourceRow, intSourceCol) intDestRow = intDestRow + 1 intSourceRow = intSourceRow + 1 Cells(intDestRow, intDestCol) = Cells(intSourceRow, intSourceCol) intDestRow = intDestRow + 1 intSourceCol = intSourceCol - 4 Cells(intDestRow, intDestCol) = Cells(intSourceRow, intSourceCol) intDestRow = intDestRow + 1 intSourceRow = intSourceRow + 1 Loop Until Cells(intSourceRow, intSourceCol) = "" intSourceRow = 3 intDestRow = 3 intSourceCol = intSourceCol + 1 intDestCol = intDestCol + 1 Next intLoopCounter End Sub mfg WB |
|
|
|
![]() |
| Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1) | |
| Themen-Optionen | |
| Ansicht | |
|
|