Simple clear advice in plain English

Create a button to sort data in Excel

Use a macro to sort information in a spreadsheet

q-a-logo

I have an easy way to create a one-click tool to sort information in Excel. First record your macro. Click on the Tools menu, then Macro and then Record new macro. Give the macro a name and click on OK. Perform the actions then click on the Stop button.

Click on Tools, Macro and Macros. Click on the macro once and then on Edit. Select all the text between (not including) Sub and End Sub and copy it to the clipboard. Close the Visual Basic window.

Click on the View menu, Toolbars and Control Toolbox. Click on the button icon in this toolbar and draw the button. To rename it, right-click on CommandButton Object and Edit.

Type the name and press Enter. Right-click on the button and then click on View Code. Click to insert the cursor in the blank line and paste the code from the macro. Click on the Save button and close the Visual Basic window.

Mike Goodwin

Baffled by jargon? See our free online Jargon Buster.

Reader Comments

   

Add your comment

Please keep comments constructive and free from abuse of any kind and swearing. If you wish to link to a product or service online, please do so in such a way that makes it clear that it is not spam. If you are connected to any such product you should make that clear.

We may use your comments in the magazine. We may edit your comments for clarity or to remove unacceptable material. We will attribute your comments but not share your email address.

We request your email address and record your Internet Address (IP address) in order to block spam from our site. We will never share this information without your permission.

All comments are reviewed by the Computeractive Team before being published. Please bear with the slight delay this causes, you don't need to post more than once.

Click here to read our Privacy Policy

Click here to read our site Terms & Conditions

Related articles

illustrated-image-for-workshop-about-condition-formatting-in-excel

Use conditional formatting on spreadsheets

Discover how conditional formatting can bring Excel spreadsheet data to life

q-a-logo

Separate text in an Excel column

Use the Delimited function in Excel to enable you to search on specific data in a column

q-a-logo

Reveal the bottom scrollbar in Microsoft Excel

If you cannot see the bottom scrollbar or worksheet tabs in Excel follow our advice

Content Recommendation

Question & Answer

Q.Why is Windows Backup skipping files?

> Read the answer

Q.Why do my scanned documents display gibberish?

> Read the answer

Q.How can I convert MTS files to edit in Windows Movie...

> Read the answer

Best deals on the web

img

Samsung NP350E7C-A04UK

£349.99- Buy it now

img

Toshiba Satellite C850D-11Q (PSCC2E-00R00JEN)

£279.97- Buy it now

img

Lenovo G580 (MAANJUK)

£379.99- Buy it now

Updating your subscription status Loading

Most popular articles

No matching document

Poll

Do you have Windows 8?

Jargon Buster

Computing terms explained in plain English

Virtual drive

A set of files seen by Windows as a separate hard disk.

Great shopping deals from Computeractive

Information currently unavailable