Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
grouping
I am copying some rows from one sheet to another, how can I also copy the
grouping (DataGroup and OutlineGroup)? Is it at all possible? Thanks, Dan |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
grouping
Hello Dan,
When we do paste in Excel, we have some paste special options from the ribbon(2007), Home-Clipboard-Past-Paste Values and Number Formatting. Using this option should let us copy both of the data and rows' grouping information. I record a VBA macro and see the codes as follows, -------------------------------------- Sub Macro1() ' ' Macro1 Macro ' ' Selection.PasteSpecial Paste:=xlPasteAllUsingSourceTheme, Operation:=xlNone _ , SkipBlanks:=False, Transpose:=False Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _ :=False, Transpose:=False End Sub -------------------------------------- Best regards, Ji Zhou - MSFT Microsoft Online Community Support |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
grouping help!!!!!!! | Excel Worksheet Functions | |||
Grouping | Excel Discussion (Misc queries) | |||
Grouping | Excel Discussion (Misc queries) | |||
Row Grouping | Excel Programming | |||
Grouping | Excel Worksheet Functions |