Forum Discussion
Tom_Griffith
May 16, 2023Copper Contributor
VBA - Range to include numbered lists
Hello. If you have a minute, I'm extracting text from a range within MS Word...for example... targetRange.Start=200 targetRange.End=500 This returns all the text (targetRange.Text) but since...
Stefan_Blom
May 17, 2023MVP
You can retrieve the formatted text from a range. However, as Doug wrote, making a suggestion would be a lot easier if we knew exactly what you are trying to accomplish with your macro.
- Tom_GriffithMay 17, 2023Copper ContributorHi. yeah, it gets the format but the numbered lists don't seem to be captured. I'm trying to take the range wording and put it into a text field in a db. Thank you.
- May 17, 2023
- Tom_GriffithMay 17, 2023Copper Contributoroh, wow. Is there a reverse of ConvertNumberstoText, in order to restore? I'd rather not change the list numbering on the Word doc itself, just need the text for the db with the converted to text list numbers. I've always struggled with this DOM as I'm thinking I'm changing some object in memory and not real-time ranges, etc on the Word doc. thank you so much again.