LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22
Default Trouble with charts in Excel 2007 - Access 2007/VBA

I discovered why this line doesn't work. There are no additional charts in
the worksheet! The problem actually lies with the following code, which
worked in 2003:

If i < nCount Then 'There is at least one more store to be
reported
.Range(.Cells(N - (conRows - 1), 1), .Cells(N, conCols)).
Select
XLobj.Selection.Copy
.Range(.Cells(N + 1, 1), .Cells(N + conRows, conCols)).Select
XLobj.Selection.Insert
XLobj.CutCopyMode = False
XLobj.ActiveWindow.SelectedSheets.HPageBreaks.Add Befo
=XLobj.ActiveCell
XLobj.ActiveCell.Offset(-conRows, 0).Activate
Else
'use the last blank form for the last store
.Range(.Cells(N - (conRows - 1), 1).Address).Activate
End If

The copy/paste procedure above is no longer including the 10 charts that
exist in the range selected in the worksheet.

ragtopcaddy wrote:
I have the following line of code in an Access module:

Set xlChartObject = XLobj.ActiveSheet.ChartObjects(i + y)

I get error 1004, "Application defined, or object defined error".

This code worked fine in 2003, but refuses to budge in 2007.


--
Bill Reed

"If you can't laugh at yourself, laugh at somebody else"

Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...mming/200810/1

 
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
Excel 2007 Query Wizard problem with Access 2007 extensions Showdad Excel Discussion (Misc queries) 0 December 4th 08 05:57 PM
Convert Excel 2007 data forms to Access 2007 ? Cris22149 Excel Discussion (Misc queries) 0 November 19th 08 02:13 AM
Pasting a chart from Excel 2007 to Word 2007 trouble Vegas Charts and Charting in Excel 5 September 16th 08 07:37 AM
Importing Data to Excel 2007 from Access 2007 mp80237[_2_] Excel Programming 1 June 12th 08 08:57 PM
Importing Data to Excel 2007 from Access 2007 mp80237 Excel Programming 4 June 12th 08 08:56 PM


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