I have a large file list that needs certain rows shifted one cell to the right. Rows with only data in the A column do not need to be shifted. My current code doesn;t work.
Sub shift_right()
If ActiveCell.Offset(0, 1).Value <> "NULL" Then
Selection.Insert Shift:=xlToRight, CopyOrigin:=xlFormatFromLeftOrAbove
End If
End Sub
The files looks like this:
The goal is for it to look like this:
Only move rows right if column B has data.
Typically I have 4-5 files with gt 21,000 lines.
I want to select all of column A and have the macro update the list.
Sub shift_right()
If ActiveCell.Offset(0, 1).Value <> "NULL" Then
Selection.Insert Shift:=xlToRight, CopyOrigin:=xlFormatFromLeftOrAbove
End If
End Sub
The files looks like this:
Agnes | |
Elizabeth (16322BA) | 289 |
Frances M. (16322BF) | 290 |
Harriett E. (16322BD) | 290 |
The goal is for it to look like this:
Agnes | ||
Elizabeth (16322BA) | 289 | |
Frances M. (16322BF) | 290 | |
Harriett E. (16322BD) | 290 |
Only move rows right if column B has data.
Typically I have 4-5 files with gt 21,000 lines.
I want to select all of column A and have the macro update the list.