Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Error 1004: Unable to set the XValues of the Series Class

The first 2 times I run this code, it loads the bubble chart perfectly
On the 3rd time I run it, I recieve the error:

Error 1004: Unable to set the XValues of the Series Class


While Range("datastart").Offset(rowoffset, intColNames).Value <
""
intTemp1 = intTemp1 + 1
strXRange = Range("datastart").Offset(rowoffset
intColXValues).Address
strAddr1 = Range("datastart").Offset(rowoffset
intColYValues).Address
strAddr2 = "='Data'!R" & Range("datastart").Offset(rowoffset
intColSize).Row & _
"C"
Range("datastart").Offset(rowoffset, intColSize).Column
With ActiveChart
With .SeriesCollection.NewSeries
.XValues = Sheets("Data").Range(strXRange)
.Values = Sheets("Data").Range(strAddr1)

.Name
safeName(Replace(Range("datastart").Offset(rowoffs et, intColNames - 1)
" ", ""))
.BubbleSizes = strAddr2

'add data labels
If Sheets("Data").Range(strXRange).Value < "N/A" Then
.Points(1).HasDataLabel = True
.Points(1).DataLabel.Text
Range("datastart").Offset(rowoffset, intColNames)
.Points(1).DataLabel.Position
xlLabelPositionCenter
.Points(1).DataLabel.Font.Size = 8.5
End If

.Interior.PatternColorIndex = 19
.Interior.Pattern = xlSolid
.Interior.ColorIndex
CInt(Range("datastart").Offset(rowoffset, colorNum))

.Border.LineStyle = xlNone

End With
End With

'move to next row
rowoffset = rowoffset + 1
Wen

--
Message posted from http://www.ExcelForum.com

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
Unable to set the XValues property of the Series class Ben Charts and Charting in Excel 7 December 7th 06 10:01 PM
Unable to set the XValues property of the Series class ramkumar_cpt Charts and Charting in Excel 5 November 29th 05 02:13 PM
Run time error 1004 - Unable to get add property of the buttons class Mark[_37_] Excel Programming 0 March 1st 04 09:48 AM
Run-time error '1004' - Unable to set the Visible property of the Worksheet class Shalin Chopra Excel Programming 3 November 25th 03 08:38 PM
Error 1004 - unable to set the orientation of the page setup class E Sullivan Excel Programming 4 October 27th 03 02:31 PM


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