Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Dim p As Paragraph
For Each p In ActiveDocument.Paragraphs
If Left(p.Range.Text, 1) = ">" Then
p.Range.Copy
' and paste it where you want it
End If
Next
Sub Proteome()
Dim docSource As Document
Dim docTarget As Document
Dim rngSource As Range
Dim rngTarget As Range
Set docSource = ActiveDocument
Set docTarget = Documents.Add
Set rngSource = docSource.Range(0, 0)
Set rngTarget = docTarget.Range
Do While rngSource.End < docSource.Range.End - 1
If rngSource.MoveEndUntil(vbVerticalTab) = 0 Then
rngSource.MoveEndUntil vbNewLine
End If
rngSource.MoveEnd wdCharacter
If rngSource.Paragraphs.Count > 1 Then
rngSource.Collapse wdCollapseStart
rngSource.MoveEndUntil vbNewLine
rngSource.MoveEnd wdCharacter, 2
End If
If Left(rngSource.Text, 1) = ">" Then
rngSource.Copy
rngTarget.Paste
rngTarget.Collapse wdCollapseEnd
End If
rngSource.Collapse wdCollapseEnd
Loop
End Sub