Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
FromDate = Format(Range("A1").value,"dd/mm/yyyy")
ToDate = Format(Range("A2").value,"dd/mm/yyyy")
With sheets("Sheetname").Querytables(1)
.CommandText = "SELECT Data from Table WHERE " & _
"DateField >= '# " & FromDate & " #' AND " & _
"DateField <= '# " & ToDate & " #'"
.Refresh(false)
End With