PC Review


Reply
Thread Tools Rate Thread

Chartspace Conundrum

 
 
bulsatar
Guest
Posts: n/a
 
      25th Jan 2010
Hello Everyone,

I am having difficulty wrapping my arms around the chartspace and chchart
objects as they do not appear to behave the same as most objects. Here is my
question:

I have created a form with a default view as a pivotchart. What I would
like to do is save the formatting of the chart with an on open event. Then
let the user change anything that they want and with an on close event, set
the chart (or chartspace) back to the original formatting with the variable
set from the beginning.

So far I have tried setting a chartspace to a variable, a chart to a
variable, and cycling through the chart items and setting those to variable
to try and reformat that way (or even to just get the names of the items
being used). All of it has failed.

Thanks for the help, always appreciated

**using Access 2003 and OWC10 references
 
Reply With Quote
 
 
 
 
ChrisO
Guest
Posts: n/a
 
      27th Jan 2010
The graph object may be too complex to chase down each and every detail.
Perhaps it is simpler to just give the gofingerpokers a copy with which to
play.

Option Explicit
Option Compare Text

Public frmFormCopy As Access.Form


Sub ForTestOnly()

OpenFormCopy "My Graph Copy"

End Sub

' Please do NOT call this procedure from the original Form.
' We only want to open a copy of the original Form.
Public Sub OpenFormCopy(ByVal strFormCaption As String)

' Here, frmGraphOriginal is the
' literal name of the original Form.
Set frmFormCopy = New Form_frmGraphOriginal

With frmFormCopy
.Caption = strFormCaption
.Visible = True
End With

End Sub
--
A nod is as good as a wink to a blind horse.


"bulsatar" wrote:

> Hello Everyone,
>
> I am having difficulty wrapping my arms around the chartspace and chchart
> objects as they do not appear to behave the same as most objects. Here is my
> question:
>
> I have created a form with a default view as a pivotchart. What I would
> like to do is save the formatting of the chart with an on open event. Then
> let the user change anything that they want and with an on close event, set
> the chart (or chartspace) back to the original formatting with the variable
> set from the beginning.
>
> So far I have tried setting a chartspace to a variable, a chart to a
> variable, and cycling through the chart items and setting those to variable
> to try and reformat that way (or even to just get the names of the items
> being used). All of it has failed.
>
> Thanks for the help, always appreciated
>
> **using Access 2003 and OWC10 references

 
Reply With Quote
 
ChrisO
Guest
Posts: n/a
 
      27th Jan 2010
A friend, Rainlover, let me know there is a simpler way to do it: -

Make an MDE file… :-)

--
A nod is as good as a wink to a blind horse.


"bulsatar" wrote:

> Hello Everyone,
>
> I am having difficulty wrapping my arms around the chartspace and chchart
> objects as they do not appear to behave the same as most objects. Here is my
> question:
>
> I have created a form with a default view as a pivotchart. What I would
> like to do is save the formatting of the chart with an on open event. Then
> let the user change anything that they want and with an on close event, set
> the chart (or chartspace) back to the original formatting with the variable
> set from the beginning.
>
> So far I have tried setting a chartspace to a variable, a chart to a
> variable, and cycling through the chart items and setting those to variable
> to try and reformat that way (or even to just get the names of the items
> being used). All of it has failed.
>
> Thanks for the help, always appreciated
>
> **using Access 2003 and OWC10 references

 
Reply With Quote
 
 
 
Reply

Thread Tools
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Chartspace & Excel2003 Ludo Microsoft Excel Programming 0 9th Nov 2010 04:54 PM
Chartspace cougarfighter@gmail.com Microsoft Excel Programming 0 24th Apr 2007 07:55 PM
chartspace from owc =?Utf-8?B?cm9kY2hhcg==?= Microsoft ASP .NET 0 4th Apr 2007 08:40 PM
Chartspace - Forms & OWC11 RabGSutherland Microsoft Access Form Coding 0 14th Feb 2006 12:01 PM
Chartspace Leslie Microsoft Dot NET 3 12th Nov 2003 03:40 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:06 AM.