![]() |
|
#1
|
||||
|
||||
![]()
Why are you bothering with this? Surely you could just create a new, empty document?! Still, if that's what you want, try:
Code:
Sub CleanData() ActiveDocument.Content.Delete End Sub
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#2
|
|||
|
|||
![]()
thank for answer macropod, i already find way clean document data and paste my content. my solution look like :
Code:
Sub doc_clean_paste() Word.ActiveDocument.Range.Select Selection.WholeStory Selection.Delete Unit:=wdCharacter, Count:=1 Dim doc As Word.Document Set doc = ThisDocument doc.Range.InsertParagraphAfter doc.Range.InsertAfter "Text Added at " & Time End Sub |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
VBLearner | Word VBA | 1 | 03-09-2014 08:42 PM |
importing Access data to a Word document | WayneCusack | Word VBA | 2 | 12-24-2012 12:26 AM |
![]() |
cory_0101 | Office | 1 | 09-27-2012 07:15 PM |
![]() |
provlima | Word | 2 | 05-25-2012 01:12 PM |
![]() |
Charles Kenyon | Word VBA | 2 | 05-17-2012 11:18 AM |