Advertisement

05.03.2008 at 08:39PM PDT, ID: 23374517
[x]
Attachment Details

vba - group and ungroup

Asked by sjvenz in Microsoft Excel Spreadsheet Software

Tags: Microsoft Office, excell, 2003, vba Group and ungroup

In a spreadsheet i have the following
A                  B                    C                  D
 -                   Absent until further notice      
      20005      0      Absent until further notice      On Off
      20005      1      Absent until further notice      Allow crew
      20005      4      Absent until further notice      New absences
      20005      5      Absent until further notice      Cut off times
 -                   Afternoon shift allowance      
      102      0      Afternoon shift allowance      On Off
      102      1      Afternoon shift allowance      Min start time (HH:MM)
      102      2      Afternoon shift allowance      Max start time (HH:MM)
      102      3      Afternoon shift allowance      Allowance (cents)
 -                   Agents Point Counter Settings      
      20024      0      Agents Point Counter Settings      On Off
      20024      2      Agents Point Counter Settings      Work a public
      20024      3      Agents Point Counter Settings      Other Holiday Points
      20024      4      Agents Point Counter Settings      Holiday on day off points
      20024      5      Agents Point Counter Settings      Public Holiday
      20024      6      Agents Point Counter Settings      Expiry Period (Years)


Column a will only have the "-" in it to signify that this is the TITLE as shown above

At present I manually go through and GROUP these so that the TITLE only is visible

 -                   Absent until further notice
 -                   Afternoon shift allowance
 -                   Agents Point Counter Settings

The problem is that everynow and then I need to either add or update these rows so I must UNGROUP then fix everything and then GROUP again.

Is it possible to run a code on Column "A" find any "-" references then have what is under neath grouped until the next reference is found
Start Free Trial
[+][-]05.03.2008 at 11:56PM PDT, ID: 21494779

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.04.2008 at 01:26AM PDT, ID: 21495019

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.04.2008 at 03:25PM PDT, ID: 21497170

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.04.2008 at 03:40PM PDT, ID: 21497212

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.04.2008 at 09:41PM PDT, ID: 21498148

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.04.2008 at 10:43PM PDT, ID: 21498302

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.04.2008 at 10:46PM PDT, ID: 21498304

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.04.2008 at 10:52PM PDT, ID: 21498320

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.04.2008 at 10:57PM PDT, ID: 21498332

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.04.2008 at 11:02PM PDT, ID: 21498348

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.04.2008 at 11:05PM PDT, ID: 21498354

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.04.2008 at 11:10PM PDT, ID: 21498364

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.05.2008 at 08:57PM PDT, ID: 21504668

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Microsoft Excel Spreadsheet Software
Tags: Microsoft Office, excell, 2003, vba Group and ungroup
Sign Up Now!
Solution Provided By: weellio
Participating Experts: 2
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628