VBA Button Sort

Kaibii

New Member
Joined
Feb 18, 2021
Messages
1
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
Hey all -

I'm really new to doing things like this with Excel and I was wondering is it possible?

What I'm trying to do is create two buttons for an end user. The first button after clicking would give an option of ascending or descending order, then give an option of which column the user wants to sort by. The second button would just return the table to default. Any ideas?

Thanks in advance,

Tyler
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.

GlennUK

Well-known Member
Joined
Jul 8, 2002
Messages
11,547
Two buttons where? Your description is not very specific. Are you going to be embedding buttons/shapes in a sheet? Or were you thinking of something else? What VBA have you attempted for this? Did you experiment with the Macro recorder?
 

mikerickson

MrExcel MVP
Joined
Jan 15, 2007
Messages
24,024
If you set the Table to show the Filter Button, the user will have that functionality by clicking the button
 

Watch MrExcel Video

Forum statistics

Threads
1,133,617
Messages
5,659,882
Members
418,535
Latest member
Ajith55

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
Top