Search box floating issue

lee2121

New Member
Joined
Mar 14, 2017
Messages
41
I have created a search box which works well but after using the search box the selected text stays on the screen and will even appear on another excel file which is totally unrelated.

box02.png


This is what stays on the screen

box01.png


I will add the file to this post if i can so you can look at my code, this is really annoying as the file is so close to working. Any ideas will be very appreciated.

this is my code:

Code:
Sub FilterGroup()
'
' FilterGroup Macro
'

'
ActiveSheet.Range("$AZ$22:$AZ$3634").AutoFilter Field:=1, Criteria1:="=true" _
        , Operator:=xlAnd
Range("B20").Select
End Sub
Sub ShowAll()
'
' ShowAll Macro
    ActiveSheet.Range("$AZ$22:$AZ$3634").AutoFilter Field:=1
    ActiveSheet.ComboBox1.Activate
    Range("B20").Select
End Sub

Sub Order()
'
' Order Macro
'

'
    ActiveSheet.Range("$BB$23:$BB$3634").AutoFilter Field:=1, Criteria1:=">0", _
        Operator:=xlAnd
End Sub
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.

Forum statistics

Threads
1,224,820
Messages
6,181,155
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top