![]() |
|
|
|
#1
|
|||
|
|||
|
I add the below code and work fine now.
Dim objDoc As Document Dim cBI As Style, cBIsub As Style, cBIsup As Style, cItalic As Style, cIsub As Style, cIsup As Style, cBold As Style, cBsub As Style, cBsup As Style, cSub As Style, cSup As Style, cAllCap As Style, cSmCap As Style Set objDoc = ActiveDocument Set cBI = ActiveDocument.Styles.Add("cBI", Type:=WdStyleType.wdStyleTypeCharacter) Set cBIsub = ActiveDocument.Styles.Add("cBIsub", Type:=WdStyleType.wdStyleTypeCharacter) Set cBIsup = ActiveDocument.Styles.Add("cBIsup", Type:=WdStyleType.wdStyleTypeCharacter) Set cBold = ActiveDocument.Styles.Add("cBold", Type:=WdStyleType.wdStyleTypeCharacter) Set cBsub = ActiveDocument.Styles.Add("cBsub", Type:=WdStyleType.wdStyleTypeCharacter) Set cBsup = ActiveDocument.Styles.Add("cBsup", Type:=WdStyleType.wdStyleTypeCharacter) Set cItalic = ActiveDocument.Styles.Add("cItalic", Type:=WdStyleType.wdStyleTypeCharacter) Set cIsub = ActiveDocument.Styles.Add("cIsub", Type:=WdStyleType.wdStyleTypeCharacter) Set cIsup = ActiveDocument.Styles.Add("cIsup", Type:=WdStyleType.wdStyleTypeCharacter) Set cSub = ActiveDocument.Styles.Add("cSub", Type:=WdStyleType.wdStyleTypeCharacter) Set cSup = ActiveDocument.Styles.Add("cSup", Type:=WdStyleType.wdStyleTypeCharacter) Set cAllCap = ActiveDocument.Styles.Add("cAllCap", Type:=WdStyleType.wdStyleTypeCharacter) Set cSmCap = ActiveDocument.Styles.Add("cSmCap", Type:=WdStyleType.wdStyleTypeCharacter) and Help me how to find greek letters. I will do the remaining. |
|
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Style type character continues on to new paragraph | myalo | Word | 6 | 02-07-2021 02:56 PM |
| Automatically applying character style while using fast style feature | Didier Super | Word | 1 | 04-10-2017 05:10 AM |
Tab character causes style change to Heading 4 after macro
|
Jennifer Murphy | Word VBA | 2 | 12-14-2015 02:31 AM |
| Change the leading of a character style??? | Char t | Word | 1 | 11-05-2011 01:18 PM |
| Character style stripped while applying paragraph style | sams_gates | Word | 0 | 08-29-2009 02:03 AM |