Fastest way to read entire Word text to array
ReDim arr(1 To wdDoc.Paragraphs.Count)
For i = 1 To wdDoc.Paragraphs.Count
arr(i) = wdDoc.Paragraphs(i).Range
Next i
I got above code to read all Word text to a array. It’s very slow. What is the most efficient way? I guess even copy/paste in VBA would be faster, but I think there should be a better way.
Thanks in advance.
ReDim arr(1 To wdDoc.Paragraphs.Count)For i = 1 To wdDoc.Paragraphs.Countarr(i) = wdDoc.Paragraphs(i).RangeNext i I got above code to read all Word text to a array. It’s very slow. What is the most efficient way? I guess even copy/paste in VBA would be faster, but I think there should be a better way. Thanks in advance. Read More