このような構成になっています。 -------------------------------------------------------------- 0001 acceptance [受諾] Sign below to indicate your acceptance of these terms. これらの条件の受諾を示すために下に署名してください。 -------------------------------------------------------------- 1155まであります。
Sign below to indicate your acceptance of these terms. という例文は、acceptance=受諾を覚えるための例文ですが、738番のsignと455番のterm(s)も覚えることができます。 そうすると、単語を覚えるという意味では、738番や455番に乗っている例文を新たに覚えなくてもいいことになります。 belowやindicateも覚えることができますが、この単語集には見出し語としては、掲載されていません。
入力セルに合わせて、手直しが必要です。
Sub Sample()
Dim c As Range
Dim firstAddress As String
With Worksheets("TANGO").UsedRange.Columns(3)
Set c = .Find(What:=ActiveCell.Value, _
LookIn:=xlValues, LookAt:=xlPart)
If Not c Is Nothing Then
firstAddress = c.Address
Do
c.Copy Destination:=ActiveCell.Offset(0, 1)
ActiveCell.Offset(0, 1).Select
Set c = .FindNext(c)
If c Is Nothing Then Exit Do
Loop Until c.Address = firstAddress
End If
ActiveCell.Clear
End With
End Sub
Sign below to indicate your acceptance of these terms. が入力されていて、見出し語 terms を入力して、マクロを実行すれば 見出し語 terms の右隣、例文のセルにSign below to indicate your acceptance of these terms.が、自動的に入力されます。