borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2009 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (Replace EXCEL Objects (linked) in WORD)Next Topic (how do i get controls.add to do what i want) New Topic New Poll Post Reply
AndreaVB Forum : VBA (Access, Excel, Word, ...) : VBA Change Groups and Sorts
Poster Message
A_Li_N
Level: Trainee

Registered: 14-11-2008
Posts: 1

icon VBA Change Groups and Sorts

I have a report that contains information on employees with grouping and sorting.
It is currently set up like this:

Group on Employee with A on top
    Group on TempStartDate with A on top
        Group on StartDate with A on top

The data needs to be grouped like that for the report to show correctly.  Only problem is that the report will always show alphabetically by employee.
What I need to know is if there is any way to insert a sort before the first group via VBA...something to the effect of this:

Sort by TempStartDate with A on top
    Group on Employee with A on top
         ....

That way it will order the report by TempStartDate instead of Employee.  

So is there any way to programmaticly add/remove/move those kinds of Groups/Sorts?  Or do I have to have multiple copies of the report based on how I want it sorted?

Thanks for any help you can give!

14-11-2008 at 11:37 PM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : VBA (Access, Excel, Word, ...) : VBA Change Groups and Sorts
Previous Topic (Replace EXCEL Objects (linked) in WORD)Next Topic (how do i get controls.add to do what i want) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2009 Andrea Tincaniborder