![]() |
|
|
|
#1
|
||||
|
||||
|
Since you haven't posted any code, you can't expect much help in diagnosing any issues you might be having. Simply saying "These are not working for my code" is meaningless without a context.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
#2
|
|||
|
|||
|
Code:
Sub a()
Dim orng As Word.Range
Selection.HomeKey Unit:=wdStory
Do
Selection.EndKey Unit:=wdLine
If Selection.End >= ActiveDocument.Content.End - 1 Then
Exit Do
End If
Set orng = ActiveDocument.Bookmarks("\Line").Range
With orng
.Collapse wdCollapseStart
.MoveEnd wdCharacter, 1
.Select
ans = IsNumeric(orng)
If orng.Font.Bold = False And ans = False Then
Selection.HomeKey Unit:=wdLine
Selection.TypeText Text:=vbTab
End If
'Do something with oRng
End With
Selection.MoveDown Unit:=wdLine
Loop
lbl_Exit:
Exit Sub
End Sub
Last edited by macropod; 07-06-2015 at 04:03 AM. Reason: Added code tags & formatting |
|
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
Put the cursor at the end of a comment
|
mrlemmer11 | Word VBA | 1 | 06-25-2015 09:56 AM |
| How do I move the cursor back to the text from a comment without using the mouse? | MsT | Word | 2 | 04-24-2014 05:48 PM |
| cursor madness | jamesschot | Word | 0 | 02-18-2010 07:32 AM |
| cursor disappears | ehamike | Word | 0 | 04-03-2009 07:56 PM |
| can't move the cursor in Word | pieboy | Word | 2 | 02-13-2009 07:15 PM |