View Single Post
 
Old 04-05-2021, 10:24 PM
Cendrinne's Avatar
Cendrinne Cendrinne is offline Windows 10 Office 2019
Competent Performer
 
Join Date: Aug 2019
Location: Montreal Quebec Canada
Posts: 200
Cendrinne is on a distinguished road
Default Thank you, Andrew...let me explain further....

Quote:
Originally Posted by Guessed View Post
When a pdf is converted back to Word, the 'list' paragraphs are going to be hard coded. You might be allowing Word to convert these to actual lists but that would be secondary to the PDF to Word conversion. The code you posted doesn't make sense to me and it appears to be heading off in the wrong direction as it is applying local formatting in order to standardise. The correct approach would be to REMOVE local font formatting and if necessary, apply a style which does have the list settings. The style settings capture all the font and paragraph settings and should do everything you need apart from needing to restart list entries.

Code:
Selection.Font.Reset  'clears local font settings
Selection.ParagraphFormat.Reset  'clears local paragraph settings
WordBasic.ToolsBulletsNumbers Replace:=0, Type:=1, Remove:=1  'removes hard-coded list numbers/bullets
Selection.Style = "List"    'applies a style which presumably has automatic numbering
1-Question, you mentioned, ''hard coded''. What is ''Hard Coded''?
2-You say you didn't understand my code, it's from the Find and Replace. So any font found, I wanted it to be at 100% size, etc. However this doesn't touch all the ''different lists''.
3- The PDF's, are given from a client, which we don't know what medium the document was done in. Would ''REMOVE local font formatting'', remove all the list?

One solution I had found previously, was to convert the Word lists to text.

Code:
    ActiveDocument.ConvertNumbersToText
So when I've selected all the document, then used that command above, I can use my previous mentioned macro to do a Find and Replace, to apply 100% to the whole document.

Reason, I didn't want to do that, is because, when I send the document to another software, it removes all the lists (number, alpha, and bullets). But temporary, I wished to keep all the lists, until I was ready. It's to be able to compare my English document and French document, make sure all the lists and bullets and paragraph are are all there, before I send it off to another software, which will remove them.

If I use Convert Numbers to Text, then it stay's there, so I have to use another macro to get rid of them before I send it to the other software.

Maybe it's not doable, to find all the list at once, to affect the scaling.

Your recent macro, could work, however, I need to find all the list names.

Thank you, Andrew, regardless, it was nice discussing this issue with an expert.

Cendrinne
Reply With Quote