Wrox Programmer Forums
|
Excel VBA Discuss using VBA for Excel programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Excel VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 19th, 2009, 10:39 AM
Registered User
 
Join Date: Jun 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default 2007 Chart problem

I have a macro (see below) that creates a chart. It works in 2003. In 2007, when I add the data series, it doesn't add the part of the range that contains blanks. I then have to go into the chart by hand and reset the range for the series to include leading blanks.

Is there a way to force it to keep the entire range or is this just a known bug?

Thx

Mark Jackson

Set c = ThisWorkbook.Charts.Add
c.Move , sws
For Each s In c.SeriesCollection
s.Delete
Next s
c.ChartType = xlColumnClustered
c.DisplayBlanksAs = False
c.SeriesCollection.Add Source:=sws.Range(Cells(tRowImpl + i, lCol), Cells(tRowImpl + i, rCol)) <- This line should set the range from C100 to AZ100. Since there are leading blanks in the row, it ends up set as AB100 to AZ100 in 2007. It works in 2003.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Send Email from MOSS 2007 Custom Workflow Using Exchange Server 2007 GAUTAM SharePoint Admin 0 March 23rd, 2009 08:47 AM
Send Email from MOSS 2007 Workflow Using Exchange Server 2007 GAUTAM SharePoint Development 0 March 23rd, 2009 08:45 AM
Dropdown problem in excel 2007 Aker Excel VBA 1 October 31st, 2008 11:49 AM
Automation problem when I moved to 2007 williamlove Access VBA 1 October 17th, 2008 08:46 AM
Not Responding Problem 2007 mateenmohd Access 0 May 19th, 2008 03:12 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.