In the project properties in the VBIDE for your project, in the 2007 version enter

Ver2007=-1

in the Conditional Compilation Arguments and use, nothing for the 2003 verison

[vba]

Sub DoStuff()
#If Ver2007 Then
Call Do2007

#Else
Call Do2003

#End If

End Sub
[/vba]