我想检查是否有适合用户输入我的宏的月份和年份的数据,这样我才能知道要转到哪个查询,该怎么做? 到目前为止我的代码:
Sub macro1()
Dim year As Integer
Dim month As Integer
year = InputBox("What year would you want to get data from?")
month = InputBox("What month would you want to get data from")
End Sub
答案 0 :(得分:0)
您可以使用 DLookup :
convertToPHPValue