dan_l
Active Member
So I've decided to join the darkside and ummm...actually learn some vba. I'm not real excited about it, but it kinda has to be done. It's not like this is my first time picking up some programming or even a little VBA, but it's been a while, so I'm basically starting from scratch.
I'm kind of a 'learn by example' kind of guy, so if you've got a couple of short snippets of vba that do something---anything, please share. Even if it's rudimentary, I could use it just for picking up little bits and pieces.
As an example:
------
Sub testingsomestuff()
Dim testing As Integer
testing = ActiveCell.FormulaR1C1
If testing < 8 Then
MsgBox ("You're screwed")
End If
If testing > 8 Then
MsgBox ("All good")
End If
End Sub
---
Only marginally more complicated than "hello world". Compares your selected sell to the 8. Why 8 you ask? I have no idea.
I'm kind of a 'learn by example' kind of guy, so if you've got a couple of short snippets of vba that do something---anything, please share. Even if it's rudimentary, I could use it just for picking up little bits and pieces.
As an example:
------
Sub testingsomestuff()
Dim testing As Integer
testing = ActiveCell.FormulaR1C1
If testing < 8 Then
MsgBox ("You're screwed")
End If
If testing > 8 Then
MsgBox ("All good")
End If
End Sub
---
Only marginally more complicated than "hello world". Compares your selected sell to the 8. Why 8 you ask? I have no idea.