Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 03-08-2023, 05:07 PM
Guessed's Avatar
Guessed Guessed is offline VBA detecting style used Windows 10 VBA detecting style used 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
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
VBA detecting style used Need help detecting the reason for a strange behavior of a UDF soroush.kalantari Excel Programming 9 08-12-2022 07:05 PM
Detecting Write Access Password azizrasul PowerPoint 0 04-05-2021 10:56 AM
Detecting an active instance of Excel from Word VBA Sorcerer13 Word VBA 17 06-02-2014 02:48 AM
Detecting last cell within a block Funk Excel 12 10-01-2013 04:26 AM
VBA detecting style used detecting triggers yisuz PowerPoint 1 05-15-2012 09:16 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 03:43 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft