![]() |
|
|
|
#1
|
|||
|
|||
|
Thanks a lot ! It's still running - can't tell you about the result. But since it's still running, you seem to have solved the problem. Latest (and biggest) Intel i7 with latest Office still uses 1 core only, three cores (+ hyperthreading) are idling. I should better split it into single files and run in parallel
![]() Do you suggest to set use .Range.Text to remove the value or shall I do it the "replace"-way? Code:
With ActiveDocument.Content.Find
.Execute FindText:="-1", ReplaceWith:="", Format:=True, Replace:=wdReplaceAll, MatchWholeWord:=False
End With
Code:
ActiveDocument.UndoClear Oops, it doesn't work every time. I've got very much cells, which haven't get touched at all. |
|
#2
|
||||
|
||||
|
Quote:
Quote:
Split(.Range.Text, vbCr)(0) to: Trim(Split(.Range.Text, vbCr)(0))
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
#3
|
|||
|
|||
|
Quote:
Quote:
Edit: Didn't work. I'm still having many "-1". I've changed it back to "Val(.Range.Text) = -1". This works safe in my case. |
|
#4
|
||||
|
||||
|
That would be of little or no benefit; the time taken to clear the buffer may actually slow down the process.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
#5
|
|||
|
|||
|
Ah okay, same as unset($var) in PHP. Thanks a lot.
|
|
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Numbering with heading is mixed up in odd pages in regard to even pages | Baflla | Word | 0 | 09-11-2016 05:25 AM |
| Multiple Master Pages dont sync with content pages | generatorjoe | Publisher | 0 | 07-28-2016 10:12 AM |
| Spreadsheet keeps crashing | SavGDK | Excel | 8 | 06-28-2016 08:27 AM |
Office 2013 is crashing and renaming files when crashing
|
Brewski | Office | 1 | 09-21-2015 09:04 PM |
Advanced page numbering: section pages in header, document pages in footer
|
Albus | Word | 12 | 12-12-2014 01:36 PM |