View Single Post
 
Old 05-16-2014, 12:22 PM
fumei fumei is offline Windows 7 64bit Office XP
Expert
 
Join Date: Jan 2013
Posts: 440
fumei is on a distinguished road
Default

This does the exact same thing.
Code:
Sub SameThing()
With ActiveDocument
   .Content.Delete
   .Range.InsertAfter vbCrLf & "Text Added at " & Time
End With
End Sub
You do not need to select anything. You certainly do not need to select the same thing twice.


These two instruction do the same thing.
Word.ActiveDocument.Range.Select
Selection.WholeStory

You take seven lines to do what can be done in two.
Reply With Quote