![]() |
#1
|
|||
|
|||
![]()
I use the following macro
Code:
Sub DIAMOND() ' ' DIAMOND Macro ' ' With Selection.Range .InsertBefore ChrW(&H2666) .Font.ColorIndex = wdRed End With Selection.Move Unit:=wdCharacter, Count:=1 With Selection .Font.ColorIndex = wdAuto End With End Sub Code:
Sub fourhand() ' ' fourhand Macro ' ' ActiveDocument.Tables.Add Range:=Selection.Range, NumRows:=3, NumColumns:= _ 3, DefaultTableBehavior:=wdWord9TableBehavior, AutoFitBehavior:= _ wdAutoFitFixed With Selection.Tables(1) If .Style <> "Table Grid" Then .Style = "Table Grid" End If .ApplyStyleHeadingRows = True .ApplyStyleLastRow = False .ApplyStyleFirstColumn = True .ApplyStyleLastColumn = False .ApplyStyleRowBands = True .ApplyStyleColumnBands = False End With Selection.MoveRight Unit:=wdCharacter, Count:=1 Selection.InsertSymbol Font:="Arial", CharacterNumber:=9824, Unicode:=True Selection.TypeParagraph With Selection.Range .InsertBefore ChrW(&H2665) .Font.ColorIndex = wdRed End With Selection.Move Unit:=wdCharacter, Count:=1 With Selection .Font.ColorIndex = wdAuto End With End Sub Last edited by macropod; 09-15-2014 at 04:07 PM. Reason: Added code tags & formatting |
#2
|
||||
|
||||
![]()
Your code works for me.
PS: When posting code, please use the code tags. They're on the 'Go Advanced' tab at the bottom of this screen.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Word macro doesn't change font color | Spideriffic | Word VBA | 8 | 11-04-2015 03:47 AM |
Make a certain font face and font color as default in a document. | Singh_Edm | Word VBA | 2 | 09-13-2014 08:47 PM |
How to change the font color of cell values | sky474 | Excel | 7 | 03-06-2014 09:15 AM |
how to search and replace BOLD text >> font color change? | dylansmith | Word | 4 | 03-12-2013 09:51 PM |
![]() |
tinfanide | Word VBA | 6 | 06-07-2012 06:48 AM |