#Const conDebug = 1 Sub ExeccuteHoge() #If conDebug = 1 Then ' デバッグ用のコード #Else ' 通常のコードを実行します。 #End If End Sub