Hi there
I have a spreadsheet where I would like to sort largest to smallest automatically as the numbers are updated. Column A is the name and Column B the number.
Could anyone help?
Example attached
Kind regards
John
Hi there
I have a spreadsheet where I would like to sort largest to smallest automatically as the numbers are updated. Column A is the name and Column B the number.
Could anyone help?
Example attached
Kind regards
John
Try pasting this into the Sheet2 tab in the VBA editor (alt F11)
Please Login or Register to view this content.
Martin
Hi there
Thanks - i have tried to type the code in to the VBA editor using:
On the Tools menu in Microsoft Excel, point to Macro, and then click Visual Basic Editor.
On the Insert menu, click Module.
Type or copy your code into the code window of the module.
If you want to run the macro from the module window, press F5.
When you're finished writing your macro, click Close and Return to Microsoft Excel on the File menu.
but when I try to run the macro it can't be found.
Please forgive my ignorance
Cheers
John
It needs to go on the Sheet2 tab and not in a new module. You should be able to open the Sheet2 tab by clicking Sheet2 in the project explorer in the top left hand corner.
Hi
I get the following - I'm obviously still doing something wrong
Cheers
John
mrice say in sheet2. Press (alt F11) then put code in in VBA Sheet2.
Here the file as it working fine.
To help you by my post? it would be nice to click on to say "Thank you".
If you are happy with a solution to your problem?
Click Thread Tools above your first post,
select "Mark your thread as Solved".
if you dont want tu use VBA, try the attached. you can hide what you dont need to be visible
1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
2. If your question is resolved, mark it SOLVED using the thread tools
3. Click on the star if you think someone helped you
Regards
Ford
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks