Home
Forums
New posts
Search forums
Articles
Latest reviews
Search resources
Members
Current visitors
Newsgroups
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Home
Forums
Newsgroups
Microsoft Excel
Microsoft Excel Programming
Help with InputBox in a Macro
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Norman Jones, post: 7003557"] Hi Lizzie45ie, I think there was a typo in Dave's response.I think he intended: Selection.AutoFilter Field:=37, _ Criteria1:=CLng(CDate(Starting)), _ Operator:=xlAnd, Criteria2:=CLng(CDate(Ending)) However, I think that you will also need to add the > and < operators, e.g.: Selection.AutoFilter Field:=37, _ Criteria1:=" >=" & CLng(CDate(Starting)), _ Operator:=xlAnd, _ Criteria2:="<=" & CLng(CDate(Ending)) Incidentally, with the Starting and Ending variables dimmed as dates, I was able to drop the CLng and CDate conversions when woking with a US date setup; If I used UK type (dd/mm/yy) date setings, then I needed the CLng conversions. In either case it will not hurt to use the conversions. [/QUOTE]
Verification
Post reply
Home
Forums
Newsgroups
Microsoft Excel
Microsoft Excel Programming
Help with InputBox in a Macro
Top