Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 03-08-2023, 03:18 PM
NicoleJones NicoleJones is offline VBA detecting style used Windows 10 VBA detecting style used Office 2016
Novice
VBA detecting style used
 
Join Date: Jan 2020
Posts: 11
NicoleJones is on a distinguished road
Default VBA detecting style used

Is it possible to write VBA code to detect the style currently used? I am creating a macro to insert and format a table and image caption, however the style used for these captions depend on where it is in the document e.g. the caption sits further in if there is a heading above, for paragraph text I have created an 'indented normal' style, so I am wanting the code to see the 'indented normal' and apply an 'indented caption' style.
Reply With Quote
 

Thread Tools
Display Modes


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:32 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