PaulCruice
New Member
- Joined
- Aug 18, 2006
- Messages
- 15
GreekWord1 EnglishWord1 Notes1
GreekWord2 EnglishWord2 Notes2
, EnglishWord3 Notes3
GreekWord3 EnglishWord4 Notes4
GreekWord4 EnglishWord5 Notes5
. EnglishWord6 Notes6
GreekWord5 EnglishWord7 Notes7
GreekWord6 EnglishWord8 Notes8
? EnglishWord9 Notes9
GreekWord7
GreekWord8
GreekWord9
The example above loses its formatting here but I think you will get the drift.
Column A has a list of Greek words WITH punctuation in separate cells. Column B & C are the English translation and notes for each Greek word. What I want to do is insert blank cells in Columns B & C to correspond with the punctuation so that the English words and notes properly align with their correct Greek word. My attempt at a macro (below) does not work.
Sub Macro1()
Dim x As Integer
For x = 1 To 9
If RxC1 = "," Then
Range(Cells(x, 2), Cells(x, 3)).Select
Selection.Insert Shift:=xlDown
ElseIf RxC1 = "." Then
Range(Cells(x, 2), Cells(x, 3)).Select
Selection.Insert Shift:=xlDown
ElseIf RxC1 = "?" Then
Range(Cells(x, 2), Cells(x, 3)).Select
Selection.Insert Shift:=xlDown
End If
Next x
End Sub
GreekWord2 EnglishWord2 Notes2
, EnglishWord3 Notes3
GreekWord3 EnglishWord4 Notes4
GreekWord4 EnglishWord5 Notes5
. EnglishWord6 Notes6
GreekWord5 EnglishWord7 Notes7
GreekWord6 EnglishWord8 Notes8
? EnglishWord9 Notes9
GreekWord7
GreekWord8
GreekWord9
The example above loses its formatting here but I think you will get the drift.
Column A has a list of Greek words WITH punctuation in separate cells. Column B & C are the English translation and notes for each Greek word. What I want to do is insert blank cells in Columns B & C to correspond with the punctuation so that the English words and notes properly align with their correct Greek word. My attempt at a macro (below) does not work.
Sub Macro1()
Dim x As Integer
For x = 1 To 9
If RxC1 = "," Then
Range(Cells(x, 2), Cells(x, 3)).Select
Selection.Insert Shift:=xlDown
ElseIf RxC1 = "." Then
Range(Cells(x, 2), Cells(x, 3)).Select
Selection.Insert Shift:=xlDown
ElseIf RxC1 = "?" Then
Range(Cells(x, 2), Cells(x, 3)).Select
Selection.Insert Shift:=xlDown
End If
Next x
End Sub