Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Chart "Automation"

I am an Access developer using Automation to move data
from Access to Excel.

I went to the Excel Project Explorer to see how Chart
Objects might be named. All I saw were Sheets. I would
like to see if I can assign a Chart Title variable Dates
(via VBA) to a Chart.

Can this be done?

TIA - Bob
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 90
Default Chart "Automation"

Bob -

Charts on their own sheet (chart sheets) show up in the project
explorer, but charts embedded in a worksheet don't show up.

If you mean the Chart Title text element in a chart, you get to it like
this:

' chart sheet named "My Chart"
With ActiveWorkbook.Charts("My Chart")
.HasTitle = True
.ChartTitle.Text = "My New Title"
End With

' embedded chart object in sheet "My Sheet"
' pick the appropriate index for ChartObjects(i)
With ActiveWorkbook.Worksheets("My Sheet").ChartObjects(1).Chart
.HasTitle = True
.ChartTitle.Text = "My New Title"
End With

- Jon
-------
Jon Peltier, Microsoft Excel MVP
http://www.geocities.com/jonpeltier/Excel/index.html
_______

Bob barnes wrote:

I am an Access developer using Automation to move data
from Access to Excel.

I went to the Excel Project Explorer to see how Chart
Objects might be named. All I saw were Sheets. I would
like to see if I can assign a Chart Title variable Dates
(via VBA) to a Chart.

Can this be done?

TIA - Bob


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Chart "Automation"

Jon - You gave me the answer I needed.

Thank you very much. Bob

-----Original Message-----
Bob -

Charts on their own sheet (chart sheets) show up in the

project
explorer, but charts embedded in a worksheet don't show

up.

If you mean the Chart Title text element in a chart, you

get to it like
this:

' chart sheet named "My Chart"
With ActiveWorkbook.Charts("My Chart")
.HasTitle = True
.ChartTitle.Text = "My New Title"
End With

' embedded chart object in sheet "My Sheet"
' pick the appropriate index for ChartObjects(i)
With ActiveWorkbook.Worksheets("My Sheet").ChartObjects

(1).Chart
.HasTitle = True
.ChartTitle.Text = "My New Title"
End With

- Jon
-------
Jon Peltier, Microsoft Excel MVP
http://www.geocities.com/jonpeltier/Excel/index.html
_______

Bob barnes wrote:

I am an Access developer using Automation to move data
from Access to Excel.

I went to the Excel Project Explorer to see how Chart
Objects might be named. All I saw were Sheets. I

would
like to see if I can assign a Chart Title variable

Dates
(via VBA) to a Chart.

Can this be done?

TIA - Bob


.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 90
Default Chart "Automation"

Bob -

Glad to help.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
http://www.geocities.com/jonpeltier/Excel/index.html
_______

Bob barnes wrote:

Jon - You gave me the answer I needed.

Thank you very much. Bob

-----Original Message-----

Bob -

Charts on their own sheet (chart sheets) show up in the


project

explorer, but charts embedded in a worksheet don't show


up.

If you mean the Chart Title text element in a chart, you


get to it like

this:

' chart sheet named "My Chart"
With ActiveWorkbook.Charts("My Chart")
.HasTitle = True
.ChartTitle.Text = "My New Title"
End With

' embedded chart object in sheet "My Sheet"
' pick the appropriate index for ChartObjects(i)
With ActiveWorkbook.Worksheets("My Sheet").ChartObjects


(1).Chart

.HasTitle = True
.ChartTitle.Text = "My New Title"
End With

- Jon
-------
Jon Peltier, Microsoft Excel MVP
http://www.geocities.com/jonpeltier/Excel/index.html
_______

Bob barnes wrote:


I am an Access developer using Automation to move data
from Access to Excel.

I went to the Excel Project Explorer to see how Chart
Objects might be named. All I saw were Sheets. I


would

like to see if I can assign a Chart Title variable


Dates

(via VBA) to a Chart.

Can this be done?

TIA - Bob


.


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
why do i "sometimes" need to "edit chart object" before "source da Flirty and Blonde Charts and Charting in Excel 1 February 2nd 10 02:07 PM
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell Steve Kay Excel Discussion (Misc queries) 2 August 8th 08 01:54 AM
how can I avoid "server busy" message during ole automation Stefan Excel Discussion (Misc queries) 0 April 17th 07 11:16 AM
Stopping "Link Worksheets?" message box (using automation) pw Excel Programming 1 July 24th 03 03:54 AM


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