PC Review


Reply
Thread Tools Rate Thread

Chart vanishes in paste operation

 
 
Fan924
Guest
Posts: n/a
 
      17th Oct 2007
Can I use something else other than...
Cells(arr(x, 2), arr(x, 3)).PasteSpecial
There is data and a chart in the copy area and in the paste, and the
chart gets lost. ;(

 
Reply With Quote
 
 
 
 
=?Utf-8?B?Sm9lbA==?=
Guest
Posts: n/a
 
      17th Oct 2007
Charts and Pictures sit on top of the worksheet and is not a part of the
worksheet. When you copy cells the don't include the items that are not part
of the workssheet. The pictures need to be copied seperately.

chart are located by there .left and .top location. Each cell also has a
..left and .top property.


Sub test()

startleft = Range("B4").Left
starttop = Range("B4").Top
endleft = Range("D7").Left
endtop = Range("D7").Top


For Each chrt In ActiveSheet.Shapes
If chrt.Type = msoChart Then
If chrt.Left >= startleft And _
chrt.Top >= starttop And _
chrt.Left <= endleft And _
chrt.Top <= endtop Then

MsgBox (chrt.Name & " was found to be inside range of cells")

End If
End If

Next chrt

End Sub

"Fan924" wrote:

> Can I use something else other than...
> Cells(arr(x, 2), arr(x, 3)).PasteSpecial
> There is data and a chart in the copy area and in the paste, and the
> chart gets lost. ;(
>
>

 
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
Re: Change cut/paste operation to cut/insert operation Don Guillett Microsoft Excel Programming 0 17th Jan 2007 03:23 PM
dataloss during cut paste operation =?Utf-8?B?TXVzdGFmYSBKYW0=?= Microsoft Windows 2000 3 21st Apr 2005 02:35 PM
when i try to copy & paste a downloaded clip art, it vanishes upo. =?Utf-8?B?c2FqZQ==?= Microsoft Access 1 11th Apr 2005 06:39 PM
Chart vanishes! rci Microsoft Excel Programming 1 12th Mar 2005 02:20 AM
c# app vanishes during operation on Windows 98 Niall Microsoft Dot NET Framework 0 6th Aug 2003 03:55 AM


Features
 

Advertising
 

Newsgroups
 


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