LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 110
Default Change and refresh OLEObject showing Excel chart on Access form.

(Sorry this is not strictly Excel charting but I have had no hints in
the Access groups where I posted this first - hoping someone in the
Excel world can help me)

Hi All

I display an Excel chart in a MS Acess User form using an unbound OLE
object. I am trying to change the Excel workbook(and therefore chart)
that my OLEObject displays:

Private Sub Form_Load()
With Me.oleExcelChart
' SourceDoc is currently "W:\Public\83.xls"
Debug.Print .SourceDoc
.SourceDoc = "W:\Public\XX.xls"
Debug.Print .SourceDoc
' ## how can I get the OLEobject to repaint/redisplay/
change?!
End With
End Sub

When run this results in this output:

W:\Public\83.xls
W:\Public\XX.xls

However the OLEObject is stil displaying 83.xls! How can I complete
the step and tell the OLEobject to refresh/update to the new/different
Excel file?

Thanks in advance for any ideas,
Chrisso
 
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
Data Refresh Issues when linking Access queries to Excel Rob Excel Discussion (Misc queries) 0 October 6th 06 06:40 PM
Chart showing percent change jermsalerms Charts and Charting in Excel 1 May 20th 06 05:54 PM
Bart chart with lines showing % change between elements Tom Charts and Charting in Excel 1 August 31st 05 02:01 AM
Excel chart data labels showing % change instead of value? MFritz Charts and Charting in Excel 1 July 20th 05 02:37 PM
Link Access query to refresh an EXCEL file Dancer4u New Users to Excel 1 January 13th 05 05:24 PM


All times are GMT +1. The time now is 09:44 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"