View Single Post
 
Old 03-08-2023, 05:07 PM
Guessed's Avatar
Guessed Guessed is offline Windows 10 Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 4,176
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

Yes it is possible but you haven't provided enough information in order to create the code.

How is the macro going to work out which section it is in? The macro can look backwards or forwards to see if a certain piece of content is above or below it but we don't know what this logic is from what you described. The 'heading above' may be one or more paragraphs above and we don't know what the scope of that is yet.

Maybe you should post a sample document showing what it is you want to achieve and what the styles are that should be factors
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote