Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default Set position of excel chart to cell A1

I have created code to insert a chart into an excel worksheet, but the
placement is not exactly where I would like to see it. I would like to be
able to give the chart an absolute position such as Cell A1.

Does anyone know how I can do this?

Thanks in advance for your assistance.

jasonm


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Set position of excel chart to cell A1

Try code like

With ActiveSheet.ChartObjects(1)
.Top = Range("A1").Top
.Left = Range("A1").Left
End With



"Jasonm" wrote in message
...
I have created code to insert a chart into an excel worksheet,
but the placement is not exactly where I would like to see it. I
would like to be able to give the chart an absolute position
such as Cell A1.

Does anyone know how I can do this?

Thanks in advance for your assistance.

jasonm



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default Set position of excel chart to cell A1

Chip, Thanks for the direction! That did the trick.

I am fairly new to using VBS in excel... I do it in access quite a bit,
but... I am trying to make a wokrsheet that will display any chart that the
user wants at the touch of a button. This gets me one step closer!

Thanks again.

Jasonm

"Chip Pearson" wrote in message
...
Try code like

With ActiveSheet.ChartObjects(1)
.Top = Range("A1").Top
.Left = Range("A1").Left
End With



"Jasonm" wrote in message
...
I have created code to insert a chart into an excel worksheet, but the
placement is not exactly where I would like to see it. I would like to be
able to give the chart an absolute position such as Cell A1.

Does anyone know how I can do this?

Thanks in advance for your assistance.

jasonm





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
Macro to change position of chart labels on line chart Shane Henderson[_2_] Charts and Charting in Excel 1 May 27th 11 09:31 AM
Office 07 Excel chart title position Eve Allen[_2_] Charts and Charting in Excel 1 January 21st 09 12:13 PM
2003 Excel Radar Chart Data Label Position Bill Excel Discussion (Misc queries) 1 September 25th 08 02:48 PM
Excel 2003 Line Chart - Switch Axis Position sot Charts and Charting in Excel 2 September 27th 07 01:12 PM
Changing chart title changes position of chart Bing Excel Programming 3 March 9th 05 08:11 AM


All times are GMT +1. The time now is 08:14 PM.

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"