Order feilds in Table

Ragnar78

Board Regular
Joined
Feb 10, 2004
Messages
210
Hy,

I have a Macro that insert feilds in a table depending on the first Field.
So for example If i have:

C048
C048
C049
C064

the macro will add 2 more lines:
C048
C048
C049
C064
C049
C064

Ordering this table should give me
C048
C048
C049
C049
C064
C064

Now i want the table having it Ordered by this field withouth having to create a Table query that specificaly order this table...is it possible through a macro?
Thank you
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
in Code it would be something like
CurrentDb.TableDefs("MyTable").Properties(13) = "MyField"
This works in A97 but I have not tested it on any other versions.

it is not usualy a good idea to let yopur users into tables though, they break things!

peter
 
Upvote 0

Forum statistics

Threads
1,221,780
Messages
6,161,887
Members
451,730
Latest member
BudgetGirl

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