Microsoft Access Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsDatabaseMicrosoft Access Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old December 18th, 2003, 03:10 AM
Snowsride Snowsride is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Posts: 79 Snowsride User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 27 m 53 sec
Reputation Power: 6
Question Refresh Excel link to Access

Does anyone know how to refresh an Excel spreadsheet from
code in Access?

I have a spreadsheet linked to an Access query and a
Powerpoint presentation linked to the Excel spreadsheet.
I need to refresh the Excel data and save the file and
then refresh Powerpoint.

I can refresh the Excel data with suitable code in the
Workbook_Open module e.g. ActiveWorkbook.Refreshall but
that means I have to open and close the spreadsheet
manually.

If I try to incorporate similar code in an Access
procedure by setting up a reference to the Excel
application object then an error is generated when it
tries to refresh the data - the user is prompted to login
to Access and 'ODBC MS Access Driver Login Failed' is
displayed.

If I can refresh the Excel spreadsheet OK is there similar
code to refresh the Powerpoint charts as well?

Thanks

Mike Collard

Reply With Quote
  #2  
Old December 23rd, 2003, 03:47 PM
dandgard dandgard is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Location: Bremerton WA
Posts: 5 dandgard User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I take it that when you say you can refresh the data in the Excel spreadsheet that you have a Macro tied to the Access DB and this runs when the spreadsheet opens. (thus you have to open and close). If you create a new menu item and tie it to the same macro then you should be able to select the same thing from a menu.

Look at how to create CommandBars and CommandBarControls in your excel Help file.

The menu creation items are Office wide so there should be a representative ability in PowerPoint also. (I have never worked with powerpoint so this is a presumption).

Reply With Quote
Reply

Viewing: ASP Free ForumsDatabaseMicrosoft Access Help > Refresh Excel link to Access


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT