ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Seaching Ex cel for text styles (https://www.excelbanter.com/excel-programming/439600-seaching-ex-cel-text-styles.html)

Jim in Fort Worth Texas

Seaching Ex cel for text styles
 
Using VSTO and .NET 3.5 how does one search an Excel Workbook text for a
specific style applied to it. In Word one would do the following:


Me.application.Selection.Find.Style = Me.document.Styles(searchStyleName)

Me.application.Selection.Find.Replacement.ClearFor matting()

Me.application.Selection.Find.Replacement.Style =
Me.document.Styles(searchStyleName)

With Me.application.Selection.Find



All times are GMT +1. The time now is 02:35 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com