Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 19
Default how do i make a chart follow the active cell

I have a worksheet that has frozen panes. I need the chart that is on the
worksheet to be visible wherever the cursor is. is this possible?


  #2   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 2,489
Default how do i make a chart follow the active cell

Hi,

That would require VBA code. This example places the chart to the right
of the active cell.
Add this to the sheet code module which contains the chart object.

Private Sub Worksheet_SelectionChange(ByVal Target As Range)

With Target.Parent.ChartObjects(1)
.Top = Target.Cells(1).Top
.Left = Target.Cells(1).Left + Target.Cells(1).Width
End With

End Sub

Cheers
Andy

mepetey wrote:
I have a worksheet that has frozen panes. I need the chart that is on the
worksheet to be visible wherever the cursor is. is this possible?


  #3   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 19
Default how do i make a chart follow the active cell

Thanks!

"Andy Pope" wrote in message
...
Hi,

That would require VBA code. This example places the chart to the right of
the active cell.
Add this to the sheet code module which contains the chart object.

Private Sub Worksheet_SelectionChange(ByVal Target As Range)

With Target.Parent.ChartObjects(1)
.Top = Target.Cells(1).Top
.Left = Target.Cells(1).Left + Target.Cells(1).Width
End With

End Sub

Cheers
Andy

mepetey wrote:
I have a worksheet that has frozen panes. I need the chart that is on the
worksheet to be visible wherever the cursor is. is this possible?


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 find cell content in sheets and make sheet active Nigel Excel Discussion (Misc queries) 4 June 26th 14 02:38 PM
I HAVE SAY INFO ACROSS 10 COLUMNS. HOW TO MAKE THE COL-A CELL ACTIVE WHEN U HIT 'ENTER' CAPTGNVR Excel Discussion (Misc queries) 4 February 5th 07 09:27 PM
How do I make it so that the active cell follows the cursor keys? jmitchener Excel Discussion (Misc queries) 2 September 10th 06 06:07 PM
How do I make the border of an active cell in Excel darker? luv2sing Excel Discussion (Misc queries) 1 July 22nd 06 04:36 PM
How do I make the fill color of a cell on one sheet follow the co. SteelerfanDan Excel Worksheet Functions 2 March 8th 05 10:29 PM


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

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

About Us

"It's about Microsoft Excel"