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]
Break Types
- wdPageBreak
- wdColumnBreak
- wdSectionBreakNextPage
- wdSectionBreakContinuous
- wdSectionBreakEvenPage
- wdSectionBreakOddPage
- wdLineBreak
Ready, Set, No-Go
- Type Control-Alt-Delete
- In the bottom right corner then is a small power button. Click the arrow
- Choose Shutdown
The Path
Here is a handy shortcut that I just found out about:
Under Windows 7, if you need to copy the path to a file, you just hold the Shift key, then right mouse click on the file. The menu that opens now has a new menu item in the middle called “Copy as path”. You can then use Paste to put the full path where ever you like.
What is a Lexophile?
1. lexophile – A lover of cryptic words
1. A bicycle can’t stand alone; it is two tired.
2. A will is a dead giveaway.
3. Time flies like an arrow; fruit flies like a banana.
4. A backward poet writes inverse.
5. In a democracy it’s your vote that counts; in feudalism, it’s your Count that votes.
6. A chicken crossing the road: poultry in motion.
7. If you don’t pay your exorcist you can get repossessed.
8. With her marriage she got a new name and a dress.
9. Show me a piano falling down a mine shaft and I’ll show you A-flat miner.
10. When a clock is hungry it goes back four seconds.
11. The guy who fell onto an upholstery machine was fully recovered.
12. A grenade fell onto a kitchen floor in France resulted in Linoleum Blownapart.
13. You are stuck with your debt if you can’t budge it.
14. Local Area Network in Australia : The LAN down under.
15. He broke into song because he couldn’t find the key.
16. A calendar’s days are numbered.
17. A lot of money is tainted: ‘Taint yours, and ‘taint mine.
18. A boiled egg is hard to beat.
19. He had a photographic memory which was never developed.
20. A plateau is a high form of flattery.
21. The short fortuneteller who escaped from prison: a small medium at large.
22. Those who get too big for their britches will be exposed in the end.
23. When you’ve seen one shopping center you’ve seen a mall.
24. If you jump off a Paris bridge, you are in Seine.
25. When she saw her first strands of gray hair, she thought she’d dye.
26. Bakers trade bread recipes on a knead to know basis.
27. Santa’s helpers are subordinate clauses.
28. Acupuncture: a jab well done.
29. Marathon runners with bad shoes suffer the agony of de feet.
30. The roundest knight at king Arthur’s round table was Sir Cumference. He acquired his size from too much pi.
31. I thought I saw an eye doctor on an Alaskan island, but it turned out to be an optical Aleutian.
32. She was only a whisky maker, but he loved her still.
33. A rubber band pistol was confiscated from algebra class because it was a weapon of math disruption.
34. The butcher backed into the meat grinder and got a little behind in his work.
35. No matter how much you push the envelope, it’ll still be stationery.
36. A dog gave birth to puppies near the road and was cited for littering.
37. Two silk worms had a race. They ended up in a tie.
38. A hole has been found in the nudist camp wall. The police are looking into it.
39. Atheism is a non-prophet organization.
40. Two hats were hanging on a hat rack in the hallway. One hat said to the other, ‘You stay here, I’ll go on a head.’
41. I wondered why the baseball kept getting bigger. Then it hit me.
42. A sign on the lawn at a drug rehab center said: ‘Keep off the Grass.’
43. A small boy swallowed some coins and was taken to a hospital. When his grandmother telephoned to ask how he was, a nurse said, ‘No change yet.’
44. The soldier who survived mustard gas and pepper spray is now a seasoned veteran.
45. When cannibals ate a missionary, they got a taste of religion.
46. Don’t join dangerous cults: Practice safe sects.
Empty Nest(ed) Tables
Sub removeNestedTables()
‘
‘ removeNestedTables Macro
‘
‘
Dim myTable As Table
Dim subTable As Table
Dim ttCell As Word.Cell
For Each myTable In ActiveDocument.Tables
For Each ttCell In myTable.Range.Cells
If ttCell.Tables.Count > 0 Then
For Each subTable In ttCell.Tables
subTable.ConvertToText Separator:=”, “
Next subTable
End If
Next ttCell
Next myTable
End Sub
The Incredible Shrinking Sentence
The Cannonball Run (1981)
He’s my shrink. He was committed yesterday.
If you have a block of code with long lines that you quote in a document, the long lines can wrap around to the next line which looks really bad and makes the code harder to understand. To fix this problem, we start with a macro found over at WordTips and add a conditional statement so that it only is executed for a certain style (in this case Code Box). The macro reduces the font by ChangeSize and then checks if the paragraph fits on one line. It then repeats this process until it fits on one line.
Dim objPara As Paragraph
Const ChangeSize = 0.5
For Each objPara In ActiveDocument.Paragraphs
If objPara.Style = ActiveDocument.Styles(“Code Box”) Then
With objPara.Range
While .Information(
.Font.Size = .Font.Size – ChangeSize
Wend
End With
End If
Next objPara
End Sub
Gmail: Going Label Crazy
Belloq: [laughing as well] I grew up on this. It’s my family label.
- Create a label. See instructions from Google Help.
- Create a filter to apply the label. See instructions from Google Help.
Now we need to apply custom colors to the labels. Click the little arrow next to the label that you want to change:
Selecting a Text Block
For example, if I have the following text:
REM Third line
REM Third line
You can also cut and paste a block of text. In the above example, one could cut the selection and then paste it in the middle of the first line, resulting in:
Third REM line
[Source TechRepublic]

