![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Apr 2002
Location: Isle of Man
Posts: 7
|
I've made a macro so that when I enter a number in a textbox1 and textbox2 it finds all of the values between them (say 1 to 15)
but i cant seem to get the macro to work, could someone please assist me on this please, thankyou. heres the macro i have so far Sub Search_sale1(X As String) Selection.AutoFilter Field:=3, Criteria1:=">X", Operator:=xlAnd End Sub Sub Search_sale2(y As String) Selection.AutoFilter Field:=3, Criteria1:=" |
|
|
|
|
|
#2 |
|
Board Regular
Join Date: Mar 2002
Location: Cincinnati, Ohio, USA
Posts: 6,824
|
Hope this helps you...
Where TextBox1.Text = "1" and TextBox1.Text = "15"
Tom |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|