Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,101
Default Help with Code

Hello and Thank You For Any Help
I have created a Excel Ms Query and have created a User form to limit
between Values of DTPicker1 And DTPicker2. I thought this would work.

Any Suggestions Please Help

Sub SetFilter()
With UserForm1
Worksheets("Sheet1").Range("A5").AutoFilter _
Field:=1, _
Criteria1:="=" & .DTPicker1.Value, _
Operator:=xlAnd, _
Criteria2:="<=" & .DTPicker2.Value
End With
End Sub

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 34
Default Help with Code

Mike
Check this site for further explanantion

http://www.dailydoseofexcel.com/arch...-data-queries/

Hope this helps
MarMo


"Mike" wrote in message
...
Hello and Thank You For Any Help
I have created a Excel Ms Query and have created a User form to limit
between Values of DTPicker1 And DTPicker2. I thought this would work.

Any Suggestions Please Help

Sub SetFilter()
With UserForm1
Worksheets("Sheet1").Range("A5").AutoFilter _
Field:=1, _
Criteria1:="=" & .DTPicker1.Value, _
Operator:=xlAnd, _
Criteria2:="<=" & .DTPicker2.Value
End With
End Sub



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
split post code (zip code) out of cell that includes full address Concord Excel Discussion (Misc queries) 4 October 15th 09 06:59 PM
Drop Down/List w/Code and Definition, only code entered when selec Spiritdancer Excel Worksheet Functions 2 November 2nd 07 03:57 AM
Protect Sheet with code, but then code will not Paste error. How do i get around this. Please read for explainations.... Corey Excel Programming 4 November 25th 06 04:57 AM
How to assign same code inside Option button code space ?? furbiuzzu Excel Programming 1 November 21st 06 02:36 PM
Excel code convert to Access code - Concat & eliminate duplicates italia Excel Programming 1 September 12th 06 12:14 AM


All times are GMT +1. The time now is 06:36 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"