Livin404
Well-known Member
- Joined
- Jan 7, 2019
- Messages
- 774
- Office Version
- 365
- 2019
- Platform
- Windows
Hello,
I'm confident I'm going in the right direction, but I know I must be misssing something. In column A starting at A2 I may have on occaision have the word "Bay" either by itself or with other text. I quite simply want to insert a blank cell in Column A by shifting the Cells in that row to the left.
I've been trying to use
S
I thought I could use an "*" but that has no affect. I'm thinking I may have to use the word "CASE" somewhere in the macro.
Thank you,
I'm confident I'm going in the right direction, but I know I must be misssing something. In column A starting at A2 I may have on occaision have the word "Bay" either by itself or with other text. I quite simply want to insert a blank cell in Column A by shifting the Cells in that row to the left.
I've been trying to use
S
VBA Code:
ub Move_Bay()
Dim cell As Range
Application.ScreenUpdating = False
For Each cell In Range("A2:A" & Cells(Rows.Count, "A").End(xlUp).Row)
If InStr(cell.Text, "bay") > 0 Then
cell.Offset(0, 1) = cell.Text
cell.ClearContents
End If
Next cell
Application.ScreenUpdating = True
End Sub
I thought I could use an "*" but that has no affect. I'm thinking I may have to use the word "CASE" somewhere in the macro.
Thank you,