Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 238
Default Chart vanishes in paste operation

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. ;(

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9,101
Default Chart vanishes in paste operation

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
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
removing single quotes from a paste operation joeycalisay Excel Programming 7 February 9th 07 02:39 AM
Change cut/paste operation to cut/insert operation Don Guillett Excel Programming 0 January 17th 07 03:23 PM
Use of Paste Special - Operation Avadivelan TCS Excel Worksheet Functions 10 October 12th 06 02:33 PM
Curious operation of Paste Fred Smith Excel Discussion (Misc queries) 1 March 24th 06 12:02 PM
Chart vanishes! rci Excel Programming 1 March 12th 05 02:20 AM


All times are GMT +1. The time now is 06:56 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"