PC Review


Reply
Thread Tools Rate Thread

Animating charts

 
 
=?Utf-8?B?RWxjZWxsZXIgaW4gZGlzdHJlc3M=?=
Guest
Posts: n/a
 
      2nd Jul 2007
I am creating a program that replaces the source data of a chart. I have set
the program up so that it replaces one line of the source data every second.
I would like the updates to play back almost like an animation.

The program flows as follows:
Select "Sheet1", copy the new line data
Select "Sheet2", paste the new line of data.
Select "Sheet1", move to the next cell
Copy
Select "sheet2", move to the next cell
Paste
Repeat....

Every time the program selects a sheet, the sheet becomes the active window
on my screen. Is there a command that will just let me see the chart? I
would like all the copy, paste and update commands to occur in the background.

Thanks for your time

 
Reply With Quote
 
 
 
 
merjet
Guest
Posts: n/a
 
      2nd Jul 2007
Don't use the select keyword. Just copy and paste such as follows.

Sheets("Sheet1").Range("C2:C11").Copy _
Sheets("Sheet2").Range("B2:B11")

Hth,
Merjet


 
Reply With Quote
 
=?Utf-8?B?RWxjZWxsZXIgaW4gZGlzdHJlc3M=?=
Guest
Posts: n/a
 
      2nd Jul 2007
Thanks, we are 1/2 of the way home.

Now that I see the chart, it flickers every time it updates. Is it possible
to make it update smoother? I would like to get it to transition smoothly
similar to a picture in PowerPoint. The program starts by zeroing out the
values in the chart, it then fills in the values one second at a time.
Looking at the chart below, it fills in the y value of time 1, waits 1 second
and fills in the value of time 2…..


X
X
X
X
X
XXXXXXXXXXXXXXXXXXXXX
1 2 3 4 5 6 7 8 9 10
Time



"merjet" wrote:

> Don't use the select keyword. Just copy and paste such as follows.
>
> Sheets("Sheet1").Range("C2:C11").Copy _
> Sheets("Sheet2").Range("B2:B11")
>
> Hth,
> Merjet
>
>
>

 
Reply With Quote
 
Jon Peltier
Guest
Posts: n/a
 
      3rd Jul 2007
You could try

Application.ScreenUpdating = False
Sheets("Sheet1").Range("C2:C11").Copy _
Sheets("Sheet2").Range("B2:B11")
Application.ScreenUpdating = True

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Tutorials and Custom Solutions
Peltier Technical Services, Inc. - http://PeltierTech.com
_______


"Elceller in distress" <(E-Mail Removed)> wrote
in message news:240B66E2-7B1A-4768-9807-(E-Mail Removed)...
> Thanks, we are 1/2 of the way home.
>
> Now that I see the chart, it flickers every time it updates. Is it
> possible
> to make it update smoother? I would like to get it to transition smoothly
> similar to a picture in PowerPoint. The program starts by zeroing out the
> values in the chart, it then fills in the values one second at a time.
> Looking at the chart below, it fills in the y value of time 1, waits 1
> second
> and fills in the value of time 2...
>
>
> X
> X
> X
> X
> X
> XXXXXXXXXXXXXXXXXXXXX
> 1 2 3 4 5 6 7 8 9 10
> Time
>
>
>
> "merjet" wrote:
>
>> Don't use the select keyword. Just copy and paste such as follows.
>>
>> Sheets("Sheet1").Range("C2:C11").Copy _
>> Sheets("Sheet2").Range("B2:B11")
>>
>> Hth,
>> Merjet
>>
>>
>>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Powerpoint 2003 - Animating Charts =?Utf-8?B?VHVyYm9hY2VtYW4=?= Microsoft Powerpoint 2 17th Jun 2006 05:01 PM
Problem animating charts in 2003 =?Utf-8?B?Tm9iYnk=?= Microsoft Powerpoint 4 12th Sep 2005 10:29 AM
Animating Charts..... Mari G Microsoft Powerpoint 0 13th Apr 2005 04:18 PM
what happened to animating charts? =?Utf-8?B?QWxsaXNvbjAwMA==?= Microsoft Powerpoint 1 14th Jun 2004 11:05 PM
Animating Charts Laurie Microsoft Powerpoint 2 11th Oct 2003 06:09 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:45 AM.