View Single Post
 
Old 04-05-2021, 04:59 PM
Guessed's Avatar
Guessed Guessed is offline Windows 10 Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 3,977
Guessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant future
Default

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
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote