Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,560
Default Populate Excel Chart Data from Access

Hello,

Two questions:

I am trying to populate SHEET2 of a particular spreadsheet from an Access
query. Data in SHEET2 is the source of data for a graph on SHEET1.

1. When I run the DoCmd.TransferSpreadsheet from Access, naming SHEET2 as
the destination RANGE, it creates SHEET21. However, when I delete SHEET2,
run the DoCmd.TransferSpreadsheet it creates SHEET2. If I run it again, it
updates SHEET2.

Is there something in Excel that recognizes a link between the graph on
SHEET1 and the data in SHEET2 which prevents me from doing this?

2. Assuming I can resolve #1 above, how can I dynamically define the range
of data for the X and Y axis? As the query is returning a different data set
each time I run it, I cannot pre-determine the last cell in the X and Y data
columns.
--
David
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
how to get Excel 07 combobox to populate from MS Access table? xz Excel Discussion (Misc queries) 0 November 20th 07 05:45 PM
Access macros in Excel - populate results in spreadsheet Dawn Excel Discussion (Misc queries) 3 August 28th 07 12:30 AM
excel chart with data source from an access query rahmad Charts and Charting in Excel 7 January 31st 07 03:55 AM
Using Access database to "populate" Excel Sheets maacmaac Excel Discussion (Misc queries) 1 September 19th 05 05:06 PM
How to populate Excel Range from Access RecordSet? deko[_2_] Excel Programming 6 February 27th 05 03:43 PM


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