Well, I have started with word/excel macros. here are my macros so far:
Here is one that adds parenthesis to the end of a selection:
Sub Parenth()
'
' Parenth Macro
'
'
    Selection.Copy
    Selection.TypeText Text:="()"
    Selection.MoveLeft Unit:=wdCharacter, Count:=1
    Selection.PasteAndFormat (wdFormatOriginalFormatting)
End Sub
This one types in the html and body tags, good for working in html in word. (not that I'd use word for html)
Sub HTMLBODY()
'
' HTMLBODY Macro
'
'
    Selection.TypeText Text:="<>"
    Selection.MoveLeft Unit:=wdCharacter, Count:=1
    Selection.TypeText Text:="html"
    Selection.MoveRight Unit:=wdCharacter, Count:=1
    Selection.TypeParagraph
    Selection.TypeText Text:="<>"
    Selection.MoveLeft Unit:=wdCharacter, Count:=1
    Selection.TypeText Text:="body"
    Selection.MoveRight Unit:=wdCharacter, Count:=1
    Selection.TypeParagraph
    Selection.TypeParagraph
    Selection.TypeText Text:="<>"
    Selection.MoveLeft Unit:=wdCharacter, Count:=1
    Selection.TypeText Text:="/body"
    Selection.MoveRight Unit:=wdCharacter, Count:=1
    Selection.TypeParagraph
    Selection.TypeText Text:="<>"
    Selection.MoveLeft Unit:=wdCharacter, Count:=1
    Selection.TypeText Text:="/html"
End Sub
And to clear:
Sub clear()
'
' clear Macro
'
'
    Selection.WholeStory
    Selection.Delete Unit:=wdCharacter, Count:=1
End Sub
Glowbow! Do your tektek.org/color thing, put it into word, activate this macro, and you have a rainbow with the glow tag!
Sub glowbow()
'
' glowbow Macro
'
'
    Selection.Find.ClearFormatting
    Selection.Find.Replacement.ClearFormatting
    With Selection.Find
        .Text = "color"
        .Replacement.Text = "glow"
        .Forward = True
        .Wrap = wdFindContinue
        .Format = False
        .MatchCase = False
        .MatchWholeWord = False
        .MatchWildcards = False
        .MatchSoundsLike = False
        .MatchAllWordForms = False
    End With
    Selection.Find.Execute Replace:=wdReplaceAll
End Sub
hello I am testing the glow tag rainbow of awesomeness
More to come!
 
						Last edited by scienceguyz (2012-02-28 20:43:43)
					 
					
No longer part of Fail. Sorry.