![]() |
|
#8
|
|||
|
|||
|
You need to get to grips with using intellisense to review your options and F1 to bring up the help page for a keyword.
When you type in a legal keyword and follow it with a '.' then the VBA IDE will pop up a list of properties and methods that you can use next. If you don't see this then you need to go to Tools->Options which will bring up a dialog box. Select the editor tab Tick all the boxes in the Code Settings frame. To get you on your way more quickly consider the line .Words(1).Text = CStr(myNewTip + myOldTotal) & " " You can then progress using Code:
.Words(1).Text = CStr(myNewTip + myOldTotal) & " "
.Words(1).Font.Color = wdColorRed
.Words(1).Font.Bold = True
Code:
With .Words(1)
.Text = CStr(myNewTip + myOldTotal) & " "
.Font.Color = wdColorRed
.Font.Bold = True
End With
PS Intellisense won't pull up properties and methods that are deprecated but which still work. Color is one such property. It has been replaced by ColorIndex which limits the color selection to the narrower range offered by the theme colors. |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
Addition
|
James__S | Word | 1 | 08-18-2016 06:20 PM |
Addition of new colors
|
marif300 | Project | 3 | 05-20-2016 07:32 AM |
Addition Formula is Giving a Date!!!
|
MikeM3 | Excel | 9 | 01-15-2016 02:41 AM |
Need tips for creating a specific word format
|
DomDom | Word | 5 | 09-24-2014 01:24 AM |
Putting a horizontal line in a Word Document -- should be simple, right?
|
biotechguy | Word | 4 | 05-10-2010 11:58 AM |