bernard = ActiveWorkbook.ActiveSheet.Name
ActiveWorkbook.Names.Add Name:="toto", RefersToR1C1:="=OFFSET(" & bernard & "!R44C7,,,COUNTA(Feuil1!C7)-1)"
Range("G40").Select
With Selection.Validation
.Delete
.Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Operator:= _
xlBetween, Formula1:="=toto"
.IgnoreBlank = True
.InCellDropdown = True
.InputTitle = ""
.ErrorTitle = ""
.InputMessage = ""
.ErrorMessage = ""
.ShowInput = True
.ShowError = True
End With