- Click anywhere in the paragraph
- Click the Insert tab on the Ribbon
- Click the Drop Cap icon in the Text group
Tag: howto
HowTo: Conditional Formatting Emails in Outlook
Macro: Remove Spacing Between Table Cells
With Dialogs(wdDialogTableTableOptions)
.AllowSpacing = 0
.Execute
End With
A second method (that I did not try) is to use this:
Selection.Tables(1).Spacing = -1
The full macro follows:
Sub remove3dBorder()
'
' remove3dBorder Macro
'
'
Dim myT As Table
For Each myT In ActiveDocument.Tables
myT.Select
'Selection.Rows.HeadingFormat = True
With Selection.Tables(1)
With .Borders(wdBorderLeft)
.LineStyle = wdLineStyleSingle
.LineWidth = wdLineWidth050pt
.Color = wdColorAutomatic
End With
With .Borders(wdBorderRight)
.LineStyle = wdLineStyleSingle
.LineWidth = wdLineWidth050pt
.Color = wdColorAutomatic
End With
With .Borders(wdBorderTop)
.LineStyle = wdLineStyleSingle
.LineWidth = wdLineWidth050pt
.Color = wdColorAutomatic
End With
With .Borders(wdBorderBottom)
.LineStyle = wdLineStyleSingle
.LineWidth = wdLineWidth050pt
.Color = wdColorAutomatic
End With
With .Borders(wdBorderHorizontal)
.LineStyle = wdLineStyleSingle
.LineWidth = wdLineWidth050pt
.Color = wdColorAutomatic
End With
With .Borders(wdBorderVertical)
.LineStyle = wdLineStyleSingle
.LineWidth = wdLineWidth050pt
.Color = wdColorAutomatic
End With
.Borders(wdBorderDiagonalDown).LineStyle = wdLineStyleNone
.Borders(wdBorderDiagonalUp).LineStyle = wdLineStyleNone
.Borders.Shadow = False
.TopPadding = CentimetersToPoints(0)
.BottomPadding = CentimetersToPoints(0)
.LeftPadding = CentimetersToPoints(0)
.RightPadding = CentimetersToPoints(0)
With Dialogs(wdDialogTableTableOptions)
.AllowSpacing = 0
.Execute
End With
.AllowPageBreaks = True
.AllowAutoFit = True
End With
' turn on header row
myT.Cell(1, 1).Select
Selection.Rows.HeadingFormat = True
Next myT
End Sub
[Source Egghead Cafe and Google Answers]
Word: Random Lorem Ipsum Text
Macro: Repetitive Replacing of Table Cells
Selection.SelectCell
If Selection.Range.Bold = True Then
Selection.Text = “RESERVED”
Else
Selection.Text = “Reserved”
End If
End Sub
AIT: Highlighting Variants
1. Open AIT Administrator
2. Select Security -> Release States
3. Add a new state:
b. State name: HighlightVar
c. Right click over the new state, select Check Row
d. Click the box near the end of the row for HighlightVar / Review Color
e. Select yellow
f. Check that the boxes are checked for all relevant users
4. Do step 3 again to add the state DoNotHighlightVar, but skip steps d and e.
6. Open AIT
7. In your library, sort the objects by variant
8. Select (using Ctrl+click) all variants of the default object
9. Right mouse click, then select Change Release State -> HighlightVar
The variant of the main document can now be published with highlighted sections.
Print Without Highlighting
1. Go to the search tab
2. Select HighlightVar from In State
3. Click on Find Now
4. The search result shows all of the objects with highlighting
5. Select all of the objects
6. Right click -> Change Release State -> DoNoHighlightVar
7. Publish
1. Go to the search tab
2. Select DoNoHighlightVar from In State
3. Click on Find Now
4. The search result shows all of the objects with highlighting
5. Select all of the objects
6. Right click -> Change Release State -> HighlightVar
7. Publish
Author-It: Pasting Text with Formatting
- From the main window select: Import -> (Transformation) Profiles
- Select Word Documents
- Click Properties
- Check the box next to Use for Paste
Paste -> Paste Using Import Profile -> Word Documents
That’s it. Happy pasting.
Filename Field Code in Word
- Open Windows Explorer
- Click Tools -> Folder Options
- Click on the View tab
- Check Hide extensions for known file types
[Source Wordribbon.Tips.net]
Painting in Irfanview
Excel Macro for Background Color
- Open the VB editor (Alt + F11)
- Open ThisWorkbook under Microsoft Excel Objects
- Add the following code:
Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)
| [Color 0] | [Color 0] | [Color 15] | [Color 15] | [Color 30] | [Color 30] | [Color 45] | [Color 45] | |||
| [Color 1] | [Color 1] | [Color 16] | [Color 16] | [Color 31] | [Color 31] | [Color 46] | [Color 46] | |||
| [Color 2] | [Color 2] | [Color 17] | [Color 17] | [Color 32] | [Color 32] | [Color 47] | [Color 47] | |||
| [Color 3] | [Color 3] | [Color 18] | [Color 18] | [Color 33] | [Color 33] | [Color 48] | [Color 48] | |||
| [Color 4] | [Color 4] | [Color 19] | [Color 19] | [Color 34] | [Color 34] | [Color 49] | [Color 49] | |||
| [Color 5] | [Color 5] | [Color 20] | [Color 20] | [Color 35] | [Color 35] | [Color 50] | [Color 50] | |||
| [Color 6] | [Color 6] | [Color 21] | [Color 21] | [Color 36] | [Color 36] | [Color 51] | [Color 51] | |||
| [Color 7] | [Color 7] | [Color 22] | [Color 22] | [Color 37] | [Color 37] | [Color 52] | [Color 52] | |||
| [Color 8] | [Color 8] | [Color 23] | [Color 23] | [Color 38] | [Color 38] | [Color 53] | [Color 53] | |||
| [Color 9] | [Color 9] | [Color 24] | [Color 24] | [Color 39] | [Color 39] | [Color 54] | [Color 54] | |||
| [Color 10] | [Color 10] | [Color 25] | [Color 25] | [Color 40] | [Color 40] | [Color 55] | [Color 55] | |||
| [Color 11] | [Color 11] | [Color 26] | [Color 26] | [Color 41] | [Color 41] | [Color 56] | [Color 56] | |||
| [Color 12] | [Color 12] | [Color 27] | [Color 27] | [Color 42] | [Color 42] | |||||
| [Color 13] | [Color 13] | [Color 28] | [Color 28] | [Color 43] | [Color 43] | |||||
| [Color 14] | [Color 14] | [Color 29] | [Color 29] | [Color 44] | [Color 44] |
[Source MVPS site]