Popup Warning Box

Acoustic

New Member
Joined
Apr 13, 2011
Messages
24
Hi All,
I'm hoping this is possible, I have created a macro button on a page to filter another sheet but find if someone manually filters that sheet then clicks the macro button it returns nothing on the filetered sheet. This is obvious to me why, as it is filtered already but wish to flag some sort of warning when it returns a blank page.

is this possible

cheers guys
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
no reason why not... but you could have your code check for a filter and then either not run or remove the filter instead....


Could you post your code?


* This would remove the filter already there (even if its not there) then you could just run your filter.
With ActiveSheet

.AutoFilterMode = False
 
Last edited:
Upvote 0
Maybe incorporate this in your code, without the Sub and End Sub
Code:
Sub msg()
MsgBox "The sheet is already filtered, " & _
        "please unfilter and try again.", vbOKOnly
End Sub

Otherwise post your code and we'll put it in for you.....but best if you try it first !!
 
Upvote 0
Cheers guys, i actually didnt code this, i used a recorded button macro. I do have the option to record the button macro with a "show all" incorporated in it, but this seems very timely on these very slow machines they give us.
 
Upvote 0

Forum statistics

Threads
1,224,524
Messages
6,179,308
Members
452,904
Latest member
CodeMasterX

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