
Private Sub Loop1() Dim myLoopCtr As Integer myLoopCtr = 0 While myLoopCtr <= 15 myLoopCtr = myLoopCtr + 1 Wend End Sub


Sub SetMyValue()
Select Case Range("A9").Value
Case "123"
Range("D9").Value = "something"
Case "456"
Range("E5").Value = "something else"
Case Else
End Select
End Sub
Selecting cells will result in very slow code.
HTH,
JP
Try this, changing the hello excel part of course, this should get you started:
Sub main()
Range("D9").Select
ActiveCell.FormulaR1C1 = "Hello Excel"
Range("D9").Select
Selection.Font.Bold = True
End Sub 

Be sure and check out my blog here on ITKE for more Network administration and VBSCRIPT tips.
The VBScript Network and Systems Administrator’s Cafe