Lone-wolf
XLDnaute Barbatruc
Bonjour et bon Dimanche à toutes et à tous
Dans mon projet j'ai pas mal de lignes répétitives avec Application.Match. Quelques exemples
rw = Application.Match(ListBox1.List(ListBox1.ListIndex, 0), WsProd.Columns(3), 0)
k = Application.Match(ListBox1.List(ListBox1.ListIndex, 0), WsProd.Columns(3), 0)
i = Application.Match(CmbFrn, WsFn.Columns(2), 0)
Comme dit dans le titre, peut-on affecter une constante public aux lignes identiques de recherche? Par exemple
Public Const Article as Long = Application.Match(ListBox1.List(ListBox1.ListIndex, 0), WsProd.Columns(3), 0)
Public Const CodeArticle as Long = Application.Match(CmbFrn, WsFn.Columns(2), 0)
Dans mon projet j'ai pas mal de lignes répétitives avec Application.Match. Quelques exemples
rw = Application.Match(ListBox1.List(ListBox1.ListIndex, 0), WsProd.Columns(3), 0)
k = Application.Match(ListBox1.List(ListBox1.ListIndex, 0), WsProd.Columns(3), 0)
i = Application.Match(CmbFrn, WsFn.Columns(2), 0)
Comme dit dans le titre, peut-on affecter une constante public aux lignes identiques de recherche? Par exemple
Public Const Article as Long = Application.Match(ListBox1.List(ListBox1.ListIndex, 0), WsProd.Columns(3), 0)
Public Const CodeArticle as Long = Application.Match(CmbFrn, WsFn.Columns(2), 0)