![]() |
#8
|
||||
|
||||
![]()
Could you clear RangeA after processing? Without knowing what the aim of the game is it's a bit difficult to judge. Here the formatted range is written to the end of the document and then the original is deleted.
Code:
Dim RangeA As Range Dim RangeB As Range Set RangeA = Selection.Range Set RangeB = ActiveDocument.Range RangeB.Collapse 0 RangeB.FormattedText = RangeA.FormattedText RangeA.Text = ""
__________________
Graham Mayor - MS MVP (Word) (2002-2019) Visit my web site for more programming tips and ready made processes www.gmayor.com |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Need to copy specific formated text from Word and paste from clipboard into a console application | Userx | Word VBA | 0 | 10-09-2020 05:58 AM |
How to paste as a single para from clipboard having multiple paragraph | PRA007 | Word VBA | 8 | 12-04-2015 04:48 AM |
Replicate a function from MS Visio? | CamSTAR1 | Excel | 0 | 08-20-2013 07:13 PM |
If Function Challenge involving date | no1texan | Excel | 6 | 07-15-2012 12:58 PM |
![]() |
g48dd | Excel | 3 | 07-16-2011 10:28 PM |