Matthias
Member
Members
Forum Posts: 49
Member Since:
December 13, 2017
December 13, 2017
Offline
Hello,
Is there a way to use VBA to define "Sort by Column" in the data model (e.g. month name by month number)?
Thanks,
Matthias
Catalin Bombea
Iasi, Romania
Member
Dashboards
Power Query
Power Pivot
Xtreme Pivot Tables
Excel for Decision Making
Excel for Finance
Excel Analysis Toolpak
Power BI
Excel
Word
Outlook
Excel Expert
Excel Customer Service
PowerPoint
Power Query
Power Pivot
Xtreme Pivot Tables
Excel for Decision Making
Excel for Finance
Excel Analysis Toolpak
Power BI
Excel
Word
Outlook
Excel Expert
Excel Customer Service
PowerPoint
Forum Posts: 1939
Member Since:
November 8, 2013
November 8, 2013
Offline
Hi Matthias,
There's little control of the data model from VBA, mostly because data modelling is not a simple process.
If you go to Object Browser in vba, (F2 shortcut from VB Editor), the Model object is the object you are looking for.
I checked all child objects, but there is no sort method on ModelTable or ModelTableColumn objects:
Answers Post
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online: Melvin Engelbrecht
Guest(s) 10
Currently Browsing this Page:
1 Guest(s)
1 Guest(s)
Top Posters:
Catalin Bombea: 1939
SunnyKow: 1432
Anders Sehlstedt: 919
Purfleet: 415
Frans Visser: 349
Hans Hallebeek: 339
David_Ng: 306
lea cohen: 248
Jessica Stewart: 219
A.Maurizio: 216
Newest Members:
santhosh kumar R
Lennard Wood
Miguel Costa
Nick Dowling
Silvia Ramos
Muhammad Abdullah Asad
Ifeanyi Aghanama
Ann Crossman
Kate Manders
James Carabott
Forum Stats:
Groups: 3
Forums: 25
Topics: 7069
Posts: 30981
Member Stats:
Guest Posters: 49
Members: 34461
Moderators: 2
Admins: 3
Administrators: Mynda Treacy, Philip Treacy, Jessica
Moderators: Velouria, Riny van Eekelen
© Simple:Press —