Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Moving a variable number of Sheets to another Workbook

I am creating a variable number of ChartSheets with VBA
Code. After creating them, I want to move them to
another Workboook. I can't figure out how to refer to
the Array of Sheets so tha I can move them. Any ideas?

Thanks!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Moving a variable number of Sheets to another Workbook

Nelson,

As well as Worksheets, there is a Charts collection.

You can access these through

For Each ch in Charts
Debug.Print ch.Name

or

For i = 1 To Charts.Count
Debug.Print Charts(i).Name

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Nelson M" wrote in message
...
I am creating a variable number of ChartSheets with VBA
Code. After creating them, I want to move them to
another Workboook. I can't figure out how to refer to
the Array of Sheets so tha I can move them. Any ideas?

Thanks!



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Moving a variable number of Sheets to another Workbook

ActiveWorkbook.Charts.Move After:=Workbooks(1).Sheets(1)

--

Regards,
Tom Ogilvy

"Nelson M" wrote in message
...
I am creating a variable number of ChartSheets with VBA
Code. After creating them, I want to move them to
another Workboook. I can't figure out how to refer to
the Array of Sheets so tha I can move them. Any ideas?

Thanks!



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
Moving Data between sheets in the same workbook and moving data between Workbooks. Alison Brown Excel Worksheet Functions 0 February 10th 09 02:03 AM
moving data between workbook sheets Soosieboo Excel Discussion (Misc queries) 3 September 23rd 08 10:45 PM
Moving Sheets within a workbook dan Excel Worksheet Functions 5 August 4th 06 10:58 PM
add new sheets in a workbook with new sheets being a variable [email protected] Excel Discussion (Misc queries) 1 April 11th 06 08:38 PM
Use of variable to identify range of sheets in a workbook rhs414 Excel Discussion (Misc queries) 1 June 20th 05 01:42 PM


All times are GMT +1. The time now is 12:43 PM.

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"