Link to home
Start Free TrialLog in
Avatar of spirodem
spirodemFlag for Australia

asked on

Sort with spaces and borders

trying to sort column a but keep format the same
each "block" a2:e3 need to remain
but also have odd size "blocks" a8:e10"

the list is a long list and also have multiple worksheets in workbook - all with the same column numbers and layout
Book1.xlsx
Avatar of Ejgil Hedegaard
Ejgil Hedegaard
Flag of Denmark image

Add a couple of columns with formulas to hold the sort order, like attached.
Book1-Q28296557.xlsx
Avatar of spirodem

ASKER

the list is far too long and have many more products
and too complicated for users
need a button to click and auto sort
ASKER CERTIFIED SOLUTION
Avatar of byundt
byundt
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hi Byndt
can you please add code to exclude "home" worksheet
i want to create a home worksheet to put the sort button and other link buttons to each work sheet so need that one excluded
Did you notice statement 13 in my suggested code? I anticipated the need to exclude one or more sheets from the sorting operation, and even flagged that statement with a comment. To exclude one or more sheets, just list their names in statement 13, separated by commas.
Case "Summary", "Data"  'Do nothing with these sheets

Open in new window

great thanks

one more thing : - there are certain fields that have numbers in them like
690
1190
950
1190 Adv
690 D

they are not been sorted
Could you please post a workbook that illustrates the problem? Five rows of data on a single worksheet are enough.

I'd like to see the exact layout of your data, how you did (or did not) modify the macros to suit your situation, and whether your numbers are text that looks like numbers or actual numeric values.

Brad
attached worksheet
Book11.xlsx