Ungrouping Sheets

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi all
What is the correct syntax to ungroup sheets in a workbook? I want to make
sure that no sheets have been grouped by a previous user of the files I'm
opening (as this causes problems with certain VBA procedures I'm running on
the files). Can't find anything on this in the VBA help file...
Thxs!
 
You just have to select one sheet.

If ActiveWindow.SelectedSheets.Count > 1 Then
ActiveWindow.SelectedSheets(1).Select
End If


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com
 
Thanks!

Chip Pearson said:
You just have to select one sheet.

If ActiveWindow.SelectedSheets.Count > 1 Then
ActiveWindow.SelectedSheets(1).Select
End If


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top