Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 923
Default Active Sheet

As I understand it the Active object here is the chart, so there is no
active sheet. So you specify the location of the object by direct reference.
Try using the ChartObject.Add method. Then set the chart objects as
required.

Dim Ash As Worksheet
Set Ash = ActiveSheet 'current active sheet

Dim Ach As ChartObject

Set Ach = Ash.ChartObjects.Add(100, 30, 400, 250)

Cheers
Nigel


"Tony Reflinski" wrote in message
...
In the following expression, how to change "Sheet1" so a
plot will be placed on active sheet?

ActiveChart.Location Whe=xlLocationAsObject, _
Name:="Sheet1"



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
Copy sheet and make new sheet active belvy123 Excel Discussion (Misc queries) 5 April 24th 08 03:33 PM
Active Cell Copy And Paste Sheet to Sheet A.R.J Allan Jefferys New Users to Excel 4 May 4th 06 02:04 AM
Using the Active cell in one sheet for another sheet JOHNNY_E Excel Discussion (Misc queries) 0 May 4th 05 06:19 AM
Active sheet? RJH Excel Programming 3 January 14th 04 04:15 PM
How to make a sheet the active sheet? [email protected] Excel Programming 1 October 26th 03 12:25 AM


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

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

About Us

"It's about Microsoft Excel"