View Single Post
 
Old 03-18-2016, 06:45 PM
rpb925 rpb925 is offline Windows 7 64bit Office 2010 64bit
Novice
 
Join Date: Mar 2016
Location: Sydney
Posts: 17
rpb925 is on a distinguished road
Default

Thanks so much Macropod, Guessed and gMayor. It's great to know somebody out there can help me. I'm surprised at how differently you guys have approached it. Before I attempt to get it working with the advice provided I had a couple of questions.

1) The three of you have provided different solutions for setting the range for the table;
gmayor; You have defined a variable Orng = doc.Range
macropod; you have used .Characters.Last which I like cause my simple vba mind can make sense of it and I can see it working throughout the document.
guessed; You have used .Paragraphs(2)

Are there any real advantages of using any method over another. I must admit I don't really understand how the defining of rng = doc.Range works. Are you setting the whole document as a range? I sort of like just working from where the last character was are there any pitfalls with this?

2) Macropod could you please explain why you define the style (wdStyleNormal) at the beginning but do not seem to use it later?

3) What does turning screen updating off and on do?

4) What is the difference between saving at the start and the end?

I'm very grateful for the prompt and thorough help amazing. Thanks
Ron
Reply With Quote