Hi,

I am workin gon a code in which start date and end date needs to passed to vb code.

Start dates and End dates are passed from a vbs file .
The vbs code is written below:

Set objExcel = CreateObject("Excel.Application")
With objExcel
.Workbooks.Open "C:\emailfetch\FetchEmails.xlsm"
.Visible = True
.Run "FolderTraverse",Now-1,Now
.ActiveWorkbook.Close True
.Quit
End With

Here parameters are passed as Now and Now -1 but with this format dates are limited to some specific scenario.

How can I pass dates which are not in the Now and Now-1 format.I want to pass dates in more flexible ways.
Any pointer will be appreciated


Regards
Rakesh