Excel を使用して、組織階層の空白セルを埋めようとしています。以下の前後のシナリオ。
これについて疑似コードを試みました。
For all rows
For all cells in row
If cell is populated, row++
If cell is not populated, copy the value immediately above to the current cell and check next cell in row.
- この論理は健全ですか?
- これをVBAで実装するにはどうすればよいですか?
このように各行の各セルを反復処理できると思います...
For Each row In rng.Rows
For Each cell in row.Cells
'Do Something
Next cell
Next row
しかし、私は立ち往生!どんな助けでも大歓迎です。