#1   Report Post  
Posted to microsoft.public.excel.programming
dan dan is offline
external usenet poster
 
Posts: 866
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 19
Default 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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
grouping help!!!!!!! perrewperrew Excel Worksheet Functions 1 October 20th 07 04:16 AM
Grouping Holly Excel Discussion (Misc queries) 6 July 26th 07 01:33 PM
Grouping John Excel Discussion (Misc queries) 1 November 4th 06 08:51 PM
Row Grouping Justin Philips Excel Programming 4 April 4th 06 05:42 PM
Grouping Rachana Excel Worksheet Functions 1 October 7th 05 10:19 PM


All times are GMT +1. The time now is 10:48 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"