How to make match() work with date in excel vba?

后端 未结 6 806
萌比男神i
萌比男神i 2021-01-13 04:16

I\'m having problem making the match() work in excel VBA. The code is:

x = Application.Match(\"Sep 2008\", Range(\"F1:F1\"), 0)

The value i

6条回答
  •  一个人的身影
    2021-01-13 04:39

    This way it works using this method:

    Nbr,L, C as Integer

    Datedeb as date

    nbr = WorksheetFunction.Match(CLng(CDate(Datedeb)), Range(Cells(L, C), Cells(L + 100, C)), 0)
    

提交回复
热议问题