Search box floating issue

lee2121

New Member
Joined
Mar 14, 2017
Messages
28
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

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.

Forum statistics

Threads
1,215,219
Messages
6,123,684
Members
449,116
Latest member
HypnoFant

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